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.

GridListControl visible columns

Thread ID:

Created:

Updated:

Platform:

Replies:

51996 Nov 19,2006 11:02 PM Nov 21,2006 12:42 AM Windows Forms 1
loading
Tags: Grouping
Michael Gutkin
Asked On November 19, 2006 11:02 PM

How do you control visible columns in GridListControl cell of GroupGrid? Also, how do you hide column header of GridListControl in GroupingGrid?

Administrator [Syncfusion]
Replied On November 21, 2006 12:42 AM

Hi MG,

You can access the GridDropDownGridListControlCellRenderer and use the Renderer.ListControlPart.ShowColumnHeader property to customize the column header in a DropDown GridListControl. Andalso you can use the ListControlPart.Grid.Cols.Hidden collection to manage the visible column in a dropdown gridlistcontrol. Here is a code snippet to show this.

GridDropDownGridListControlCellRenderer cr = this.gridGroupingControl1.TableControl.CellRenderers[ "GridListControl"] as GridDropDownGridListControlCellRenderer;
if( cr != null)
{
cr.ListControlPart.ShowColumnHeader = false;
cr.ListControlPart.Grid.Cols.Hidden[2] = true;
}

Best Regards,
Haneef

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.

;