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.

Virtual Tree Grid (Header names)

Thread ID:

Created:

Updated:

Platform:

Replies:

56148 Feb 9,2007 03:00 PM Feb 9,2007 03:32 PM Windows Forms 2
loading
Tags: GridControl
Adnan Sohail
Asked On February 9, 2007 03:00 PM

Hi,

How can i play with the headers of virtual tree grid? (i.e. changing header names, making them invisible etc)

Thanks,

Administrator [Syncfusion]
Replied On February 9, 2007 03:24 PM

Hi Adnan,

How can i play with the headers of virtual tree grid?
>>>>>>>>
You can handle the PrepareViewStyleInfo event of the grid and set the e.Style.Text to your header text. Here is a code snippet.

private void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
if( e.RowIndex == 0 && e.ColIndex == 1)
{
e.Style.Text = "HeaderText";
}
}

making them invisible?
>>>>>>>>
You can handle the QueryColWidth event to hide column in a virtual grid. Here is a code snippet.

private void gridControl1_QueryColWidth(object sender, GridRowColSizeEventArgs e)
{
if(e.Index == 1)
{
e.Size = 0;
e.Handled =true;
}
}

Best regards,
Haneef

Adnan Sohail
Replied On February 9, 2007 03:32 PM

Thanks again!

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.

;