We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

No current cell border in data bound grid

Thread ID:





96996 Oct 19,2010 01:53 PM UTC Nov 2,2010 12:50 PM UTC Windows Forms 1
Tags: GridControl
Raul Rosenthal
Asked On October 19, 2010 01:53 PM UTC


How do I get rid of the border that is drawn around the current cell?

I have implemented a virtual grid via QueryCellInfo etc.,and I want to draw a custom border for the current cell.


Yuvaraja V [Syncfusion]
Replied On November 2, 2010 12:50 PM UTC

Hi Raul,

Thank you for your interest in Syncfusion products.

In GridControl, Current Cell Custom Border is implemented through the "QueryCellInfo" event with the following code,

void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
GridCurrentCell cc = this.gridControl1.CurrentCell;
if (cc.RowIndex==e.RowIndex && cc.ColIndex==e.ColIndex && cc.IsEditing)
e.Style.Borders.Bottom = new GridBorder(GridBorderStyle.Solid, Color.Orange, GridBorderWeight.ExtraThick);
e.Style.Borders.Left = new GridBorder(GridBorderStyle.Solid, Color.RosyBrown, GridBorderWeight.Thick);
e.Style.Borders.Right = new GridBorder(GridBorderStyle.Solid, Color.RosyBrown, GridBorderWeight.Thick);
Here is the link for the current cell custom border,

Yuvaraja V


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon