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

I want to double click on a row and know what row I am on?

under the double click event, what is the code to show me what row I am on ? Thanks.

3 Replies

AD Administrator Syncfusion Team September 25, 2003 01:48 PM

If you handle a DoubleClick event then grid.CurrentCell.RowIndex - or - if you handle CellDoubleClick event then GridCellClickEventArgs.RowIndex Stefan


DT DAVE TESSITORE November 24, 2003 12:59 PM

> If you handle a DoubleClick event then grid.CurrentCell.RowIndex > - or - > if you handle CellDoubleClick event then > GridCellClickEventArgs.RowIndex > > Stefan Thanks Stefan.. works great.. now when I want to access the data at that row and a particular column after I double click, how do I get/set the data of where I double clicked? Thanks again. Dave


AD Administrator Syncfusion Team November 24, 2003 02:18 PM

If the cell is not active (you have set the ActivateCurrentCellFlags to none), then you can get and set the value using an indexer on the grid, this.grid[row, col].CellValue. If the cell is active, then you might want to call grid.CurrenctCell.EndEdit to deactivate so you can use an indexer. (There are other ways to do this if you need to keep teh cell active, getting the value from grid.CurrentCell.Renderer.ControlText and setting it with grid.CurrentCell.Renderer.Control.Text).

Loader.
Live Chat Icon For mobile
Up arrow icon