Hi!
I have an issue : apparently the specified event triggers whenever i just click on the add new row. Is this the normal behaviour ? Shouldn't it trigger when a value is actualy inserted in the row - and the new row recreates itself beneath the current one ? - this is the event i need to subscribe to - could you point me in the right direction ?
Thanks!
Hi,
Let me know if you need any additional help.
Regards,
Stefaniya
The TemplateAddRow is a bit tricky. Normally, it's just a sort've fake row in the display. Once the row becomes the active row, though, it has to become a real row and there has to be an underlying row in the data source corresponding with the grid row. This has to happen because the grid row relies on the data source row for all sorts of things like storage of the data, and the current position of the BindingManager.
If you want to know if the user has modified the row, then there's a property on the rows collection called AddRowModifiedByUser.
There are also properties on the row like IsAddRow, IsTemplateAddRow, and IsUnmodifiedTemplateAddRow that will give you information about the state of the row.