Home › Forums › WPF controls › Xceed DataGrid for WPF › Have to change data for new row
I have a datagird that is bound to a collection. the collection derives from ObservableCollection and also implements IBindingList.
I’ve added an insertion row as usual <xc:DataGridControl Name=”grdPaxConfig” NavigationBehavior=”RowOrCell” EditTriggers=”ClickOnCurrentCell,BeginEditCommand” AutoCreateColumns=”False”> <xc:DataGridControl.View> <xc:TableView> <xc:TableView.FixedFooters> <DataTemplate> <xc:InsertionRow/> </DataTemplate> </xc:TableView.FixedFooters> </xc:TableView> </xc:DataGridControl.View>
this is all good but when I click on the insertion row, I have to change the default data or the row isn’t added… any idea why?
Imported from legacy forums. Posted by Colin (had 2319 views)
This is due to the fact that if none of the Cells are “dirty” for the Row when it leaves edition, then we are cancelling the edition.
I have noted this issue as a “feature suggestion”, we will keep you informed on the progression of this issue.
Imported from legacy forums. Posted by Marcus [Xceed] (had 167 views)
Thanks for the reply Marcus. Any ideas for a workaround?
Imported from legacy forums. Posted by Colin (had 3347 views)