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

Hiding the lines in Grid

Thread ID:





54002 Dec 27,2006 10:16 AM UTC Dec 27,2006 11:35 AM UTC WinForms 3
Tags: GridControl
Asked On December 27, 2006 10:16 AM UTC

Hi all,

How to make the grid display without lines
that separates two records and also how to make the particular cell dispaly in bold letter.

thanks in advance



Administrator [Syncfusion]
Replied On December 27, 2006 10:37 AM UTC

Hi Dhana,

>>>>>How to make the grid display without lines?

Use the Propertire.DisplayXXXLines property to hide/show the lines in a grid. Below is a code snippet

this.gridControl1.Properties.DisplayHorzLines = false;
this.gridControl1.Properties.DisplayVertLines = false;

>>>>How to make the particular cell dispaly in bold letter?
///For GridControl.
this.gridControl1.Model[1,1].Font = new GridFontInfo(new Font("Arial",12f,FontStyle.Bold));
///For GridDataBoundGrid.

Best Regards,

Replied On December 27, 2006 10:53 AM UTC

Hi hanee!

The code :
this.gridControl1.Properties.DisplayHorzLines = false;
this.gridControl1.Properties.DisplayVertLines = false;

has no effect on the my grid.

any other suggestion please.

thanks for ur quick response.



Administrator [Syncfusion]
Replied On December 27, 2006 11:35 AM UTC

Hi Dhana,

You can handle the PrepareViewStyleInfo event and set e.Style.Borders.All to GridBorder.Empty. Here is a code snippet.

this.gridControl1.PrepareViewStyleInfo+=new GridPrepareViewStyleInfoEventHandler(gridControl1_PrepareViewStyleInfo);

private void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{ e.Style.Borders.All = GridBorder.Empty; }

Here is a sample.

Best Regards,


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

or the page will be automatically redirected to 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