ADAdministrator 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
DTDAVE TESSITORENovember 24, 2003 12:59 PM
> If you handle a DoubleClick event then grid.CurrentCell.RowIndex
> - or -
> if you handle CellDoubleClick event then
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.
ADAdministrator 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).