I have bounded a column with "GridListControl"
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?
ADAdministrator Syncfusion Team December 21, 2004 04:48 AM
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 = true;
//size column 3
grid.ColWidths = 150;
//set teh selection color
grid.AlphaBlendSelectionColor = Color.FromArgb(64, 255, 0, 0);