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 : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

"GridListControl" HighLight color change,ColWidth Change,Hide Column

Thread ID:

Created:

Updated:

Platform:

Replies:

22744 Dec 21,2004 07:34 AM UTC Dec 21,2004 09:48 AM UTC WinForms 1
loading
Tags: GridControl
Ram Prasath
Asked On December 21, 2004 07:34 AM UTC

I have bounded a column with "GridListControl" control. 1) Now I need to change then HighLight color of GridListControl 2)want to change some columns ColWidth of the GridListControl. 3)In the query for the GridListControl there 3 columns, so it shows all the three columns. I need to Hide one Column. What to do?

Administrator [Syncfusion]
Replied On December 21, 2004 09:48 AM UTC

If you only have one GridListControl column, then you can do set the properties at the bottom of Form.Load. If you have several such columns, then the properties will need to be set in CurrentCellShowingDropDown depending upon the CurrentCell.ColIndex. Here are the properties you need to set in Form.Load to do the things you asked about. GridDropDownGridListControlCellRenderer cr = this.gridDataBoundGrid1.CellRenderers["GridListControl"] as GridDropDownGridListControlCellRenderer; GridControl grid = cr.ListControlPart.Grid; // hide column 1 in grid - row header is column 0) grid.Cols.Hidden[1] = true; //size column 3 grid.ColWidths[3] = 150; //set teh selection color grid.AlphaBlendSelectionColor = Color.FromArgb(64, 255, 0, 0);

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

;