BoldDeskBoldDesk is now live on Product Hunt with a special offer: 50% off all plans. Let's grow together! Support us.
Hi Ehs psy,
This requirement can be achievable by using the SfDdataGrid.CellClick event is shown below,
this.sfDataGrid1.CellClick
+= OnCellClick; { int rowIndex = e.DataRow.RowIndex; } |
Here we have prepared the sample based on your scenario, please
have a look at this. Could you please confirm if we missed anything?
If this post is helpful, please consider Accepting it as the solution so that
other members can locate it more quickly.
Hi Dhanasekar Mohanraj;
what i want is the column index not just the row index.I need to click on the different headers(
Stacked Headers).
that's why i sed that e.DataColumn returns null.
thanks for the reply.
Ehs psy,
We have checked the reported issue on our end. In that, the DataColumn does not return as null its works properly as expected. Here, we have attached the tested video demo for your reference. Please have a look at this. Could you please confirm if we missed anything? If you are still facing the reported issue, modify the attached sample and share the video illustration of the reported issue. It will be helpful for us to check on it and provide you with a solution at the earliest.
Hi;
The problem shows just when you try to get the index value for an StackedHeaderRow header.
thanks.
We have created a bug report for the reported issue “DataColumn is null in the DataGrid CellClick event when clicking in the StackedHeaderColumn ”. So, We will fix this issue and include it in our first NuGet release after the Essential Studio 2022 Volume 4 release.
You can track the status of this report through the following feedback link,
Feedback Link: https://www.syncfusion.com/feedback/39430/datacolumn-is-null-in-the-datagrid-cellclick-event-when-clicking-in-the
Note: The provided feedback link is private, and you need to login to view this feedback.
We will let you know once it is released. We appreciate your patience until then.
Hi Durairaj ;
The column header graphical anomaly still exists as well.
It appears after filtering.
thanks.
Ehs psy,
We have created the new forum under SfDataGrid control because the mentioned query is not related to the previously mentioned query. We request you have a further follow-up with that forum 179169.
Ehs psy,
We would like to let you know that Essential Studio Weekly NuGet packages (v20.4.0.41) have been published in nuget.org with the fix for the issue “DataColumn is null in the DataGrid CellClick event when clicking in the StackedHeaderColumn”. Please let us know if you have any concerns about this.