Hi all,
I might be a little newbie to Telerik Winform controls, so please pardon me in advance.
I want to keep track of the edited rows, which means I want to insert new rows or update existing ones on a user button click. My data grid is not bound to a data set or something. the table in database in completely dynamic and will be created based on some meta data.
I did not find any flag in GridViewRowInfo class which can be used. (there is a IsModified flag which is always false)
So I created a List of edited rows and worked with that.
first I tried to save row indices. but I found out that the newly inserted row will have RowIndex = -1, but in save time will not be reachable.
so I decided to save the row reference in that List.
it did not work out, too. because the newly added row will change after it is really inserted into the grid. (a copy of the row will be added to grid not the row itself.) and I will insert a copy of an invalid row with no useful data.
I'd be thankful if someone helps me in this issue.
thanks.
Maziar
I might be a little newbie to Telerik Winform controls, so please pardon me in advance.
I want to keep track of the edited rows, which means I want to insert new rows or update existing ones on a user button click. My data grid is not bound to a data set or something. the table in database in completely dynamic and will be created based on some meta data.
I did not find any flag in GridViewRowInfo class which can be used. (there is a IsModified flag which is always false)
So I created a List of edited rows and worked with that.
first I tried to save row indices. but I found out that the newly inserted row will have RowIndex = -1, but in save time will not be reachable.
so I decided to save the row reference in that List.
it did not work out, too. because the newly added row will change after it is really inserted into the grid. (a copy of the row will be added to grid not the row itself.) and I will insert a copy of an invalid row with no useful data.
I'd be thankful if someone helps me in this issue.
thanks.
Maziar