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

Increase divider width between cols in GridDataBoundGrid?

Thread ID:





49672 Sep 22,2006 07:29 PM UTC Sep 25,2006 04:48 PM UTC WinForms 3
Tags: GridControl
Ken Overton
Asked On September 22, 2006 07:29 PM UTC

I want the nearest equiv of DataColumn.DividerWidth so that I can visually partition a single grid via thick dividers.

Ken Overton
Replied On September 22, 2006 07:31 PM UTC

Sorry, I meant I want the equivalent of DataGridViewColumn.DividerWidth.

Administrator [Syncfusion]
Replied On September 25, 2006 12:22 PM UTC

Hi Kov,

Please try the code below in the PrepareViewStyleInfo event, to see if this gives you what you needed.

// Form_Load
this.gridDataBoundGrid1.Model.Options.DefaultGridBorderStyle = GridBorderStyle.Solid;
this.gridDataBoundGrid1.Model.Properties.GridLineColor = Color.Silver;
this.gridDataBoundGrid1.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(gridDataBoundGrid1_PrepareViewStyleInfo);

// PrepareViewStyleInfo event
private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
if( e.ColIndex > 0)
e.Style.Borders.Right = new GridBorder(GridBorderStyle.Solid, Color.Silver, GridBorderWeight.ExtraThick);

Ken Overton
Replied On September 25, 2006 04:48 PM UTC

Great, thanks very much.

A minor nit: it''s too bad that we have to prescribe the gridlinecolor rather than letting it use the default.


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