blank rows in database
hi people,
I'm having a little trouble with a forms application. One form is bindded to a datatable and all textbox controls on the form are bindded to each field of the datatable. I use a method to insert blank rows when the user clicks a botton and then enters the text into the textboxes. the code goes like this>
DataRow row = Mydataset.Tables["Clients"].NewRow();
Mydataset.Tables["Clients"].Rows.Add(row);
The problem is that after the user commits the changes to the dataset, the last row is not entered in the db. What could be happening?
|