BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Query |
Response |
How is it possible to align each column header text (left or right, not centering)? |
Suggestion 1:
In order to align the header text at right/left/center side of the cell, HorizontalAlignment property of GridGroupingControl.Appearance.ColumnHeaderCell can be used.
Code example:
Me.gridGroupingControl1.Appearance.ColumnHeaderCell.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Right
|
Suggestion 2:
The header text can be aligned by using HorizontalAlignment property in QueryCellStyleInfo event also.
Code example:
AddHandler Me.gridGroupingControl1.QueryCellStyleInfo, AddressOf gridGroupingControl1_QueryCellStyleInfo
Private Sub gridGroupingControl1_QueryCellStyleInfo(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs)
If e.TableCellIdentity.DisplayElement.Kind = Syncfusion.Grouping.DisplayElementKind.ColumnHeader Then
e.Style.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Right
End If
End Sub |