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.
MNMuthulakshmi N Syncfusion Team August 6, 2010 12:06 PM UTC
Hi Jitesh,
Thank you for your details. By handling this.MyGrid.CellClick += new GridCellClickEventHandler(MyGrid _CellClick) event you can listen the action of the button which is present inside the UnboundVisibleColumn of the GDC .
Let us know if you need any details.
Thanks, Muthulakshmi
VJValiyaveettil Jitesh RamanathuAugust 6, 2010 05:59 PM UTC
That works. Thank you.
Jitesh
MNMuthulakshmi N Syncfusion Team August 12, 2010 06:09 AM UTC
Hi Jitesh,
Thank you for your update.
Let us know if you need any details.
Thanks, Muthulakshmi
SJScott JeslisAugust 19, 2010 05:12 PM UTC
This doesn't seem to work if the button doesn't completely fill the cell, use this XAML for example:
MNMuthulakshmi N Syncfusion Team August 25, 2010 05:27 AM UTC
Hi Jitesh,
Thank you for your details.
Here we have prepared a sample which illustrates your request. Please download the sample from the below location.
VJValiyaveettil Jitesh RamanathuOctober 13, 2010 09:28 PM UTC
Hi,
Your previous suggestion helped and I was able to capture the CellClick event. But, my event handler does not tell me which is the row from which the cell is clicked. The rowIndex from eventArgs return the row Id, but that information is not useful after the user sorts my Grid on one of the columns. I thought of binding to SlectedItem, but that returns null.
Can you please tell me how I can access the data object corresponding to specific row that is clicked?
Thanks, Jitesh
KAKamalakannan A Syncfusion Team November 15, 2010 11:39 AM UTC
Hi Jitesh,
Sorry for the delay caused.
The Cell row column index can be calculated from the mouse button down point using PointToCellRowColumnIndex() method as follows.
[Code Snippet [C#]
this.grid.PreviewMouseLeftButtonDown += new MouseButtonEventHandler(grid_PreviewMouseLeftButtonDown);