Articles in this section
Category / Section

How can I set CellTips for the Column Headers?

1 min read

To set the CellTip for the header cell of a particular column, first the CellTipText property has to be set, that can be accessed in the Design time itself through the following:

GridGroupingControl->TableDescriptor->Columns->ColumnName->Appearance->ColumnHeaderCell->CellTipText.

Please refer the below code snippet which illustrates this:

C#

private void GridGroupingWebControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)

{

if((e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell))

{

e.Style.CellTipText = e.Style.Text;

}

}

VB

Private Sub GridGroupingWebControl1_QueryCellStyleInfo(ByVal sender As Object, ByVal e As GridTableCellStyleInfoEventArgs)

If (e.TableCellIdentity.TableCellType = GridTableCellType.RecordFieldCell OrElse e.TableCellIdentity.TableCellType = GridTableCellType.ColumnHeaderCell) Then

e.Style.CellTipText = e.Style.Text

End If

End Sub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied