I have a grid bounded to a DataTable. I would like to add a new row to the grid, but I also would like the changes to be reflected in a DataTable. How should I do it??? I’ve tried doing something like this:
DataRow row = grid.DataRows.AddNew()
for(int I = 0; i < row.Cells.Count; i++) row.Cells[i] = someValue;
but after that I don’t see any changes – neither in grid nor in DataTable.
Thanks for any help!
Imported from legacy forums. Posted by styko (had 1419 views)
>Make sure you ‘i’ value stays lower case in your loop ‘i’ stays lowercase all the time in my code. The reason it is uppercase in my post is that I wrote my post using Word because I wanted it to check my spelling. So it’s not a meter of i variable.
Imported from legacy forums. Posted by styko (had 422 views)