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.

Alternative Events

Thread ID:

Created:

Updated:

Platform:

Replies:

33024 Aug 11,2005 08:54 AM Aug 11,2005 12:40 PM Windows Forms 3
loading
Tags: GridControl
Vinay
Asked On August 11, 2005 08:54 AM

Please provide me the alternative events of GridDataBoundGrid for the following Windows Grid events 1)CellValueChanged 2)RowIndexChanged 3)ColumnIndexChanged 3)OnSelectedIndexChanged Thanks

Administrator [Syncfusion]
Replied On August 11, 2005 10:45 AM

I will take a guess at what you mean by these events but I may be entirely off the mark as I do not know where these events are defined and what actions they are trying to catch. There is a grid.CurrentCellChanged event that is raised on every change (meaning every keystroke for example) to a cell. There is a grid.CurrentCellAcceptedChanges that is raised after the changes to a cell have been saved. There is a grid.CurrentCellValidating event that is a cancelable event that you can catch as your user leaves a cell so you can validate his entry. You can use the grid.CurrentCellMoving/Moved events to catch the moving of teh current cell. You can use grid.CurrentCell.MoveToRow/MoveFromRow etc in you event handler to see where you were and where you are going. I am not sure what you mean by selected here. If you mean the row the contains the current cell, then CurrentCellMoving/Moved can be use. If you mean selecting a range of cells by dragging selecting them (or clicking a header), then you can use th egrid.Model.SelectionChanging/Changed to catch this behavior.

Vinay
Replied On August 11, 2005 12:14 PM

Hello, I am using a GridDataBoungGrid. I need the following Events. 1) when I click a row header I need to catch this event & do some coding based on the row selected. Other events I can refer your mail Thanks > >Please provide me the alternative events of GridDataBoundGrid >for the following Windows Grid events > >1)CellValueChanged > >2)RowIndexChanged > >3)ColumnIndexChanged > >3)OnSelectedIndexChanged > >Thanks > > >

Administrator [Syncfusion]
Replied On August 11, 2005 12:40 PM

You can handle the CellClick event. private void grid_CellClick(object sender, GridCellClickEventArgs e) { if(e.ColIndex == 0) Console.WriteLine("Clicked header {0}", e.RowIndex); }

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.

;