Hi,
In a xaml, I have two grids. When I select a parent record in the upper grid, its corresponding list of child records gets displayed in the lower grid.
In the lower grid, if user keeps the focus in the first cell and press tab or press anywhere else in the lower grid, a validation is performed during edit mode ending, and a flag is set when its cell value is empty. Based on the flag, I display a message in edit mode ended and set back the focus in the same cell. Coz, I dont want user to do anything else unless he/she enters a value in the first cell.
1) I find the first cell in the row in the current row.
2) Set that as active cell, make it isselected and isactive flags equals true.
3) grd.ActiveCell.DataPresenter.ExecuteCommand(DataPresenterCommands.StartEditMode);
The above operation works properly, when user clicks anywhere within the lower grid, but if user clicks outside the lower grid, message keeps popping up, indefinitely. Internally, grid_EditModeEnding and Grid_EditModeEnded events are fired over and over.
Could you please help me on this? Can you suggest what could be the reason for this eccentric behavior?
Regards,
Balaji Rajendran
CCH-WK, Torrance, CA.
Hello Balaji,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
If this is what you were looking for please verify the answer so it helps other users as well
I have been reading through your description and I am not sure what exactly are doing. Usually the XamDataGrid supports hierarchical data displays: http://help.infragistics.com/NetAdvantage/WPF/2011.1/CLR4.0/?page=xamData_Displaying_Hierarchical_Data.html and the XamEditor’s have a InvalidValue property that can be set to RetainValues as described here: http://help.infragistics.com/Help/NetAdvantage/WPF/2011.1/CLR4.0/html/InfragisticsWPF4.Editors.v11.1~Infragistics.Windows.Editors.InvalidValueBehavior.html
Please let me know if you require any further assistance on this matter.