Dave,
You would create a dataadapter, and then you would set the
InsertCommand, DeleteCommand and UpdateCommand to the commands that will
perform those operations. Then, feed the dataset to the Update method on
the DataAdapter, and it should work.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"kscdavefl" <(E-Mail Removed)> wrote in message
news:B4093810-6C87-4AD8-B94C-(E-Mail Removed)...
>I am running the following code to retrieve a DataSet:
>
> public DataView CreateGroupSource()
> {
> string groupConnect = Session["connect"].ToString();
> string groupSelect = "Select grpname from Maxusergroups where usrname = "
> + "'" + userText.Text + "'";
> oda = new OleDbDataAdapter(groupSelect, groupConnect);
> DataSet ds = new DataSet();
> oda.Fill(ds, "group");
> DataView group = ds.Tables["group"].DefaultView;
> return group;
> }
>
> When I click on a button on a web form I want to convert the information
> toan excel spreadsheet.
>
> How do I accomplish this task?
>
> Thanks,
>
> Dave