Home Forums WinForms controls Xceed Grid for WinForms Using CellValueChanged in a bound grid Reply To: Using CellValueChanged in a bound grid

User (Old forums)
Post count: 23064

Well, if you use

private void Form1_Load(object sender, System.EventArgs e)
dataRowTemplate1.Cells[ “EmployeeID” ].ValueChanged += new EventHandler(EmployeeID_ValueChanged);
//then fill the grid with data

The column EmployeeID must exist already. I am using a bound data source so I thought about connecting the event handler withe the cell when the row is being added:

void gridControl1_AddingDataRow(object sender, AddingDataRowEventArgs e)
e.DataRow.Cells[“state”].ValueChanged += new EventHandler(FuturesView_ValueChanged);

but that does not trigger the EventHandler, did I overlook something?

Imported from legacy forums. Posted by twi (had 406 views)