The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator 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
DTDAVE TESSITORENovember 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
ADAdministrator 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).