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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - Remove dotted border in GroupDropArea.DragColumnHeaderText

Thread ID:





49821 Sep 27,2006 05:33 PM UTC Sep 28,2006 01:08 PM UTC WinForms 2
Tags: GridControl
Badri Rajani Kanth
Asked On September 27, 2006 05:33 PM UTC

Dear Syncfusion Support,

We are using V

we are able to change gridGroupingControl1.GridGroupDropArea.DragColumnHeaderText. But we also want to remove the dotted border also..

We tried handling GridGroupDropArea_DrawCell and GridGroupDropArea_DrawCellDisplayText events too.

Can you plz let us know how to achive this?

Rajani Kanth

Administrator [Syncfusion]
Replied On September 28, 2006 05:14 AM UTC

Hi Rajani,

You can use the GroupDropArea.PrepareViewStyleInfo event to change the appearance of the groupdrop area text in a grid. Below is a code snippet.

private void GroupDropArea_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
GridGroupDropArea area = sender as GridGroupDropArea;
GridGroupDropAreaModel model = area.Model as GridGroupDropAreaModel;
GridTable table = model.Table;
if (table.TableDescriptor.GroupedColumns.Count == 0 && e.RowIndex == 2 && e.ColIndex == 4)
e.Style.BackColor = Color.Blue;
e.Style.Borders.All = new GridBorder(GridBorderStyle.Solid);


Badri Rajani Kanth
Replied On September 28, 2006 01:08 PM UTC


In the condition if (table.TableDescriptor.GroupedColumns.Count == 0 && e.RowIndex == 2 && e.ColIndex == 4),

are values 2 and 4 always fixed? Can we take them as constants? Cause my grids have different settings in different screens. So, would like to if I can replace this condition with any thing like TableCellIdentity.TableCellType == "some thing"..

Rajani Kanth


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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