AD
Administrator
Syncfusion Team
September 25, 2003 06:48 PM UTC
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 05:59 PM UTC
> 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 07:18 PM UTC
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).