Hi,
I am struggling, after some days of effort, with a trivial implementation of an unbound grid.
Scenario: I have an unbound data object which I am using to populate an editable grid. When the user clicks on the "Add new row" I trap the DefaultValuesNeeded event and populate the grid cells with the default data required for that row. One of the columns is a calculated primary key, which I calculate and provide during the DefaultValuesNeeded event. (Previously I tried using the Row .Tag property but this has a similar problem to that described here).
1) The default values supplied are not visible in the row being edited.
2) When the CellEndEdit event fires, I want to copy the data from the edited cell into my underlying business object. However none of the default values I set for the row are available in the row Cells collection (including, unfortunately the primary key for the newly added row).
How can I use RadGridView to maintain an unbound list of data which has a calculated primary key, and default values ? I am really struggling with this, as it seems to be a really common thing to want to do ?
It would help if I could find a clear list of the events which fire when a row is added, in what order, and what they are intended to do - I may be missing something in the online help, but there doesn't seem to be a clear description. Irrespective of this, it seems that the magic "Add new row" feature is pretty broken if I cannot address the cells on the row during the CellEndEdit event ...
Frustrated.
Phillip
I am struggling, after some days of effort, with a trivial implementation of an unbound grid.
Scenario: I have an unbound data object which I am using to populate an editable grid. When the user clicks on the "Add new row" I trap the DefaultValuesNeeded event and populate the grid cells with the default data required for that row. One of the columns is a calculated primary key, which I calculate and provide during the DefaultValuesNeeded event. (Previously I tried using the Row .Tag property but this has a similar problem to that described here).
1) The default values supplied are not visible in the row being edited.
2) When the CellEndEdit event fires, I want to copy the data from the edited cell into my underlying business object. However none of the default values I set for the row are available in the row Cells collection (including, unfortunately the primary key for the newly added row).
How can I use RadGridView to maintain an unbound list of data which has a calculated primary key, and default values ? I am really struggling with this, as it seems to be a really common thing to want to do ?
It would help if I could find a clear list of the events which fire when a row is added, in what order, and what they are intended to do - I may be missing something in the online help, but there doesn't seem to be a clear description. Irrespective of this, it seems that the magic "Add new row" feature is pretty broken if I cannot address the cells on the row during the CellEndEdit event ...
Frustrated.
Phillip