I am using XamGrid control for datainput from end user. Databinding is working
For the xamgrid, I have added a new line at the bottom of the table and have kept the following settings:
IsMouseActionEditingEnabled="SingleClick" IsOnCellActiveEditingEnabled="False" AllowAddNewRow="Bottom" Style="{StaticResource addNewRowCellStyle}"/>
Now the requirement is that if user enters on the new row cell, then the active cell should be the first cell of the first row in the xamgrid so I wrote the following code in the ActiveCellChanged event to work it out
private void dataCurveGrid_ActiveCellChanged(object sender, EventArgs e)
{
Infragistics.Controls.Grids.CellBase type = dataCurveGrid.ActiveCell;
if (type is Infragistics.Controls.Grids.Primitives.AddNewRowCell)
{
if (dataCurveGrid.Rows.Count != 0)
{
dataCurveGrid.Rows[0].Cells[0].IsActive = true; } } }
The above requirement is working but
Now my hurdle is because of above ActiveCellChanged method the behaviour of data entered on new row control is getting committed cell by cell instead of row by row which is required by me and was happening before this method.
Please advice what should I do to make the user data get committed row by row.
Also please inform if any alternate method is there to solve the above user requirement and not disturb the above row by row commitment.
Thanks in advance
Rakesh