void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
if (e.RowIndex == 0)
{
e.Style.CellType = "TextBox";
}
}
void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
if (e.RowIndex == 0)
{
e.Style.CellType = "TextBox";
}
}
//to avoid trying to select columns when you click them
gridControl1.AllowSelection = GridSelectionFlags.Any & ~GridSelectionFlags.Column;
//add a little width
gridControl1.ColWidths[3] = 100;
gridControl1[0, 3].CellType = "TextBox"; //set the celltype to TextBox
gridControl1[0, 3].Text = "Some Text";
gridControl1[0, 3].CellAppearance = GridCellAppearance.Raised; //make it look like the rest of the headers
void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
if(e.RowIndex == 0)
{
e.Style.CellType = GridCellTypeName.TextBox;
e.Style.CellAppearance = GridCellAppearance.Raised;
//setting the back color for the header cell.
e.Style.BackColor = Color.LightBlue;
}
}
Regards,
Adhi.