Hi Ranjan,
Thank you for your interest in Syncfusion products.
If you want to change the GridLine color dynamically at run
time, you can use Borders Property of
TableStyle. By using this property
you can set Left, Right, Bottom, Top border styles of grid. Please make use of
below code and attached sample,
private void
buttonAdv1_Click(object sender, EventArgs e)
{
this.gridControl1.TableStyle.Borders.Right = new GridBorder(GridBorderStyle.Solid, Color.Red,
GridBorderWeight.Thin);
this.gridControl1.TableStyle.Borders.Bottom =
new GridBorder(GridBorderStyle.Solid, Color.Red,
GridBorderWeight.Thin);
}
Please let me know if you have any concerns.
Regards,
Neelakandan
Attachment:
Sample_GridLine_Changing_f753c48a.zip