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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl get hidden column value

Thread ID:

Created:

Updated:

Platform:

Replies:

58064 Mar 16,2007 03:42 PM UTC Mar 16,2007 07:21 PM UTC WinForms 2
loading
Tags: GridControl
Brian Schlatter
Asked On March 16, 2007 03:42 PM UTC

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

Administrator [Syncfusion]
Replied On 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

Brian Schlatter
Replied On March 16, 2007 07:21 PM UTC

Works great thanks!

CONFIRMATION

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.

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

;