We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get value of hidden cell of selected row

Thread ID:





150575 Jan 11,2020 06:51 PM UTC Jan 13,2020 01:26 PM UTC WinForms 1
Tags: SfDataGrid
Asked On January 11, 2020 06:51 PM UTC

Hello Sir,

I am trying to get value of hidden cell of selected row.

I am using below code from an example online, but it exits with error on last row.

      // Get the cell value for RowIndex = 5 and ColumnIndex = 1 
            int rowIndex = 5;
            int columnIndex = sfDataGrid.TableControl.ResolveToGridVisibleColumnIndex(1);
            if (columnIndex < 0)
            var mappingName = sfDataGrid.Columns[columnIndex].MappingName;
            var recordIndex = sfDataGrid.TableControl.ResolveToRecordIndex(rowIndex);
            if (recordIndex < 0)
                var record1 = sfDataGrid.View.Records.GetItemAt(recordIndex);
                var cellVaue = (record1.GetType().GetProperty(mappingName).GetValue(record1, null).ToString());

I want to get cell value on double click or cell double click event.

Please help, where something is wrong.

Your help will be highly appreciated.

Saravanan Ayyanar [Syncfusion]
Replied On January 13, 2020 01:26 PM UTC

Hi Balbir, 
Thank you for using Syncfusion controls. 
We have checked your provided code snippet, it works fine as expected from our end. We have prepared sample, to get the hidden cell value on cell double click event. Please find the below sample and UG link. 
Sample Link: 
UG Link: 
Please let us know, if you require further assistance on this. 
Saravanan A. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon