How can I set CellTips for the Column Headers?
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