Hi guys,
How can I place the new inserted row at the top and not after all the other rows? (I refer to the inserted row and not to the place where I can insert data for the new row).
Thanks,
Alin
Hi Alin,
We don't currently offer that behavior by default with the AddNewRow feature.
However, you could handle the RowAdded and re-insert the row to be first.
void grid_RowAdded(object sender, RowEventArgs e)
{
if (e.Row.Index != 0)
grid.Rows.Remove(e.Row);
grid.Rows.Insert(0, e.Row);
}
-SteveZ