Yes, you're absolutely right about that. I think Stephen might've missed the statement where you filled the Dataset.
On Mar 27, 12:39 am, Faraz Azhar <[email protected]> wrote: > Why is there a need to define a table when the table already exists in > the database. Doesnt the data adapter / dataset / datatable pick up > the table's structure by itself when its fetching data from database ? > > On Mar 26, 10:05 pm, Stephen Russell <[email protected]> wrote: > > > You are defining no structure to your containers and then attempting > > to fill them. > > > First define the Table(s) by adding the columns, or fetch data to do > > that step for you. > > > Once your table is defined. > > > DataRow dr = dTable.NewRow() > > > now do this: > > dRow("FilePath") = "C:\MyFile.txt" > > dRow("Size") = "1024" > > dTable.Rows.Add(dRow) > > > HTH > > > -- > > Stephen Russell > > > Sr. Production Systems Programmer > > CIMSgts > > > 901.246-0159 cell- Hide quoted text - > > - Show quoted text - To unsubscribe from this group, send email to dotnetdevelopment+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
