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

Virtual Tree Grid (Header names)

Thread ID:





56148 Feb 9,2007 08:00 PM UTC Feb 9,2007 08:32 PM UTC WinForms 2
Tags: GridControl
Adnan Sohail
Asked On February 9, 2007 08:00 PM UTC


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


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

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,

Adnan Sohail
Replied On February 9, 2007 08:32 PM UTC

Thanks again!


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.

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.