No current cell border in data bound grid

Hi.

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.

TIA.
Raul


1 Reply

YV Yuvaraja V Syncfusion Team 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,
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=CellBorder-336286243.zip

Regards,
Yuvaraja V


Loader.
Up arrow icon