Edit this page

Title

Since R3 2018 SP1 RadgridView supports displaying a Title(Caption). By default the Title is displayed on top. The position and the alignment of the title text can be easily changed.

gridview-caption 001

Showing the Title

To show the title just set the TitleText property. In addition the following snippet shows how you can set the font and the ForeColor.

radGridView1.TitleText = "Customers";
radGridView1.GridViewElement.TitleLabelElement.ForeColor = Color.DarkRed;
radGridView1.GridViewElement.TitleLabelElement.Font = new Font("Consolas", 12, FontStyle.Bold);

radGridView1.TitleText = "Customers"
radGridView1.GridViewElement.TitleLabelElement.ForeColor = Color.DarkRed
radGridView1.GridViewElement.TitleLabelElement.Font = New Font("Consolas", 12, FontStyle.Bold)

Changing the Position of the Title

To change the position you can use the TitlePosition property. In addition you can set the FlipText property. The TitleLabelElement property allows you to access the actual label element. This element is a LightVisualElement which is capable of displaying text and image.

radGridView1.TitlePosition = Telerik.WinControls.Layouts.Dock.Left;
radGridView1.GridViewElement.TitleLabelElement.TextOrientation = Orientation.Vertical;
radGridView1.GridViewElement.TitleLabelElement.FlipText = true;

radGridView1.TitlePosition = Telerik.WinControls.Layouts.Dock.Left
radGridView1.GridViewElement.TitleLabelElement.TextOrientation = Orientation.Vertical
radGridView1.GridViewElement.TitleLabelElement.FlipText = True

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy