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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl get hidden column value

Thread ID:

Created:

Updated:

Platform:

Replies:

58064 Mar 16,2007 11:42 AM Mar 16,2007 03:21 PM Windows Forms 2
loading
Tags: GridControl
Brian Schlatter
Asked On March 16, 2007 11:42 AM

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 01:14 PM

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 03:21 PM

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.

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.

;