Home Forums WinForms controls Xceed Grid for WinForms OnDataRowsChanged , correct way of using this? Reply To: OnDataRowsChanged , correct way of using this?

User (Old forums)
Member
Post count: 23064

You can handle the DataRowsChanged event, and use the CurrentRow to get the row being edited :

gridControl1.DataRowsChanged += new EventHandler(gridControl1_DataRowsChanged);

private void gridControl1_DataRowsChanged(object sender, EventArgs e)
{
if( gridControl1.CurrentRow.GetType() == typeof( Xceed.Grid.DataRow ) )
{
( ( Xceed.Grid.DataRow )gridControl1.CurrentRow).Cells[ 1 ].Value = “changed value”;
}
}

Imported from legacy forums. Posted by André (had 3999 views)