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.
Unfortunately, activation email could not send to your email. Please try again.

not exist RowChanged or RowChanging Event???

Thread ID:

Created:

Updated:

Platform:

Replies:

2340 Jan 8,2003 09:01 PM Jan 9,2003 01:53 AM Windows Forms 1
loading
Tags: GridControl
maharoo
Asked On January 8, 2003 09:01 PM

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

Administrator [Syncfusion]
Replied On January 9, 2003 01:53 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;