We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

not exist RowChanged or RowChanging Event???

not exist RowChanged or RowChanging Event??? how can i know when current row(or column) change??

1 Reply

AD Administrator Syncfusion Team January 9, 2003 06:53 AM UTC

For the GridDataBoundGrid (which is sort of row-oriented) there are several row-type events such as RowEnter, RowLeave, RowEditing, etc. For the GridControl (which is cell-oriented), there are many CurrentCell events that give you access at different times. If by changing, you mean moving the location of the current cell, then take a look at: CurrentCellMoving CurrentCellMoved CurrentCellDeactivating CurrentCellDeativated CurrentCellActivating CurrentCellActivated Here is a sample CurrentCellMoving handler;
private void gridControl1_CurrentCellMoving(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellMovingEventArgs e)
{
	GridCurrentCell cc = this.gridControl1.CurrentCell;
	Console.WriteLine(string.Format("Moving: from {0} {1}   to {2} {3}", cc.RowIndex, cc.ColIndex, e.RowIndex, e.ColIndex));
}
If you have the source code version of the product, you can enable TraceSwitches to see output on exactly what events are hit as you work with the grid. Search the release notes for TraceSwitches to see information on how to do this. Also, look at the config file for the GridPad to see a sample of these switchs. If by change, you mean changing the vlaues of the cells, then there is another set of CurrentCell events that you can use.

Loader.
Live Chat Icon For mobile
Up arrow icon