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
close icon

GridGroupingControl get hidden column value

Hi,

I'm using a GridGroupingControl where a DataTable is my DataSource. When a user clicks in a cell, is it possible to obtain the value of a different cell within the same row but a hidden column?

ie. I'm hiding columns in this fashion...
gridGroupingControl1.TableDescriptor.VisibleColumns.Remove("ColumnName")

Using Version: 4.4.0.51

Thanks,
Brian

2 Replies

AD Administrator Syncfusion Team March 16, 2007 05:14 PM UTC

Hi Brian,

To get the value of the hidden column, you need to call the Record.GetValue method in TablecontrolCellClick event.

GridRecordRow recRow = e.TableControl.Table.DisplayElements[e.Inner.RowIndex] as GridRecordRow;
if(recRow != null)
{
Console.WriteLine(recRow.ParentRecord.GetValue("Col0") );
}

Best regards,
Haneef


BS Brian Schlatter March 16, 2007 07:21 PM UTC

Works great thanks!

Loader.
Live Chat Icon For mobile
Up arrow icon