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.
Syncfusion Feedback

GridGroupingControl with GridListControl CellTypes

Thread ID:

Created:

Updated:

Platform:

Replies:

34675 Sep 14,2005 01:16 PM UTC Sep 14,2005 02:43 PM UTC Windows Forms 1
loading
Tags: GridControl
John Slater
Asked On September 14, 2005 01:16 PM UTC

I have several GridListControl''s (with DataSource''s) in some of my GGC cells (both parent and child tables). I have a TableControlCurrentCellCloseDropDown event set, and I would like to deternmine A: Since I have several GLC''s, what is the name of the GGC column that triggered the GLC event, and B: retrieve the data from the selected GLC DataSource. Thanks,

Administrator [Syncfusion]
Replied On September 14, 2005 02:43 PM UTC

From the e.tableControl, you can get teh GridTableCellStyleInfo object for the current cell. From the style, you can get teh DataSource, DisplayMember and ValueMember.
private void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e)
{
	GridCurrentCell cc = e.TableControl.CurrentCell;
	GridStyleInfo style = e.TableControl.GetTableViewStyleInfo(cc.RowIndex, cc.ColIndex);
	Console.WriteLine(((DataTable)style.DataSource).TableName);

}

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

;