How to get the index of a StackedHeaderRow?
e.DataColumn is null
Hi Ehs psy,
This requirement can be achievable by using the SfDdataGrid.CellClick event is shown below,
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(
that's why i sed that e.DataColumn returns null.
thanks for the reply.
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.
The problem shows just when you try to get the index value for an StackedHeaderRow header.
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,
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.
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.
We would like to let you know that Essential Studio Weekly NuGet packages (v184.108.40.206) 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.