Hi Grozer,
Thanks for using Syncfusion products.
By default, the HeaderText for the columns will be updated from the data source of the Grid. In order to change the header text of a column, the PrepareViewStyleInfo event can be used. In that event the Text property can be used to set the HeaderText for a particular column based on index.
Moreover, the GridListControl is used to display the datasource values and its cell’s type is “Static”. So, the GridListControl does not allowed to edit the cell values at run-time.
Please make use of the below code, KB link and sample,
Code example:
//Event Triggering
this.gridListControl1.Grid.PrepareViewStyleInfo += Grid_PrepareViewStyleInfo;
//Event Customization
private void Grid_PrepareViewStyleInfo(object sender,GridPrepareViewStyleInfoEventArgs e)
{
if (e.RowIndex == 0 && e.ColIndex == 3)
{
e.Style.Text = "Header1";
}
} |
Note
Please refer to the below UG for choosing the best grid,
Regards,
Arulpriya