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.

Hiding the lines in Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

54002 Dec 27,2006 05:16 AM Dec 27,2006 06:35 AM Windows Forms 3
loading
Tags: GridControl
dhana
Asked On December 27, 2006 05:16 AM

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

Regards

Dhana

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

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.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=53966

Best Regards,
Haneef

dhana
Replied On December 27, 2006 05:53 AM

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.

Regards,

Dhana




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

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.
GCBorderStyle.zip

Best Regards,
Haneef

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.

;