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.

GridGroupingControl - Remove dotted border in GroupDropArea.DragColumnHeaderText

Thread ID:

Created:

Updated:

Platform:

Replies:

49821 Sep 27,2006 01:33 PM Sep 28,2006 09:08 AM Windows Forms 2
loading
Tags: GridControl
Badri Rajani Kanth
Asked On September 27, 2006 01:33 PM

Dear Syncfusion Support,

We are using V 4.2.0.37.

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?

Rgds
Rajani Kanth

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

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);
}
}

Thanks,
Haneef

Badri Rajani Kanth
Replied On September 28, 2006 09:08 AM

Haneef,

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"..

Rgds
Rajani Kanth

CONFIRMATION

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.

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.

;