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.
ADAdministrator Syncfusion Team November 22, 2006 10:28 AM UTC
Hi Dheeraj,
Please refer to the below forum thread for changing the selected row border in a grid. http://www.syncfusion.com/support/forums/message.aspx?MessageID=44233
If you want to change the border color of the grid, you can use the Paint event and draw border using DrawRectangle method. Here is a code snippet to show this.
private void gridControl1_Paint(object sender, PaintEventArgs e) { GridControl grid = sender as GridControl; Rectangle rect = new Rectangle(new Point(0,0),grid.Bounds.Size); rect.Inflate(-1,-1); Pen pen = new Pen(Brushes.RoyalBlue,2); e.Graphics.DrawRectangle(pen,rect); }
Best Regards, Haneef
DHDheerajNovember 22, 2006 10:44 AM UTC
Hi Haneef,
Thanks for the Paint event code, only thing is I need to paint the border only when clilking on the grid control. How do I call this event method from the Clik event?
Thanks, Dheeraj
ADAdministrator Syncfusion Team November 22, 2006 11:41 AM UTC