The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
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[1] = true;
//size column 3
grid.ColWidths[3] = 150;
//set teh selection color
grid.AlphaBlendSelectionColor = Color.FromArgb(64, 255, 0, 0);