I've got a gridview successfully bound to a datatable, at least for the first display.
However, when I add a row to the datatable (through another method), and then do a gridview.databind, the new row doesn't show up.
I'm pretty sure my syntax and timing for the databind are ok, because I swapped in the datatable for a DB table, where everything was working, otherwise not changing the "contextual" code. And it displays correctly on the first display, right after loading the datatable from the DB.
I do a debug.write on the datatable right before I databind, and the new row is there.
Maybe this has something to do with the way the gridview gets bound to the datatable, that there are some internal variables (like "row changed" ) which are currently beyond my newbility to grasp?
Any suggestions on how to debug this would be appreciated.
Thanks!
However, when I add a row to the datatable (through another method), and then do a gridview.databind, the new row doesn't show up.
I'm pretty sure my syntax and timing for the databind are ok, because I swapped in the datatable for a DB table, where everything was working, otherwise not changing the "contextual" code. And it displays correctly on the first display, right after loading the datatable from the DB.
I do a debug.write on the datatable right before I databind, and the new row is there.
Maybe this has something to do with the way the gridview gets bound to the datatable, that there are some internal variables (like "row changed" ) which are currently beyond my newbility to grasp?
Any suggestions on how to debug this would be appreciated.
Thanks!