-
Notifications
You must be signed in to change notification settings - Fork 16
ES- 914242-User Guide Update regarding Rowheight and ColumnWidth for WF PivotGrid Control-Dev #1069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Changes from 1 commit
993b4e3
8fe2d58
3a36bd2
cd68e35
7d77a65
62a0991
970d81b
f9ae75f
5d85ff2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,3 +147,43 @@ End Class | |
{% endhighlight %} | ||
|
||
{% endtabs %} | ||
|
||
## Set Width for the columns | ||
|
||
The width of the columns can be changed using the `QueryColWidth` event. | ||
|
||
|
||
Refer the below code snippet to change the width of the columns by using the column index. | ||
|
||
{% tabs %} | ||
|
||
{% highlight c# %} | ||
|
||
pivotGridControl1.TableModel.QueryColWidth += TableModel_QueryColWidth; | ||
|
||
private void TableModel_QueryColWidth(object sender, Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs e) | ||
{ | ||
if (e.Index > 2) | ||
{ | ||
e.Size = 150; | ||
e.Handled = true; | ||
} | ||
} | ||
|
||
{% endhighlight %} | ||
|
||
{% highlight vb %} | ||
|
||
AddHandler pivotGridControl1.TableModel.QueryColWidth, AddressOf TableModel_QueryColWidth | ||
|
||
Private Sub TableModel_QueryColWidth(ByVal sender As Object,ByVal e As Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs) | ||
If e.Index > 2 Then | ||
e.Size = 150 | ||
e.Handled = True | ||
End If | ||
End Sub | ||
|
||
{% endhighlight %} | ||
|
||
{% endtabs %} | ||
|
||
 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,3 +147,44 @@ End Class | |
{% endhighlight %} | ||
|
||
{% endtabs %} | ||
|
||
## Set Height for the rows | ||
|
||
|
||
The height of the rows can be changed using the `QueryRowHeight` event. | ||
|
||
|
||
Refer the below code snippet to change the height of the rows by using the row index. | ||
|
||
{% tabs %} | ||
|
||
{% highlight c# %} | ||
|
||
pivotGridControl1.TableModel.QueryRowHeight += TableModel_QueryRowHeight; | ||
|
||
private void TableModel_QueryRowHeight(object sender, Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs e) | ||
{ | ||
if (e.Index > 2) | ||
{ | ||
e.Size = 16; | ||
e.Handled = true; | ||
} | ||
} | ||
|
||
{% endhighlight %} | ||
|
||
{% highlight vb %} | ||
|
||
AddHandler pivotGridControl1.TableModel.QueryRowHeight, AddressOf TableModel_QueryRowHeight | ||
|
||
Private Sub TableModel_QueryRowHeight(ByVal sender As Object,ByVal e As GridRowColSizeEventArgs) | ||
If e.Index > 2 Then | ||
e.Size = 16 | ||
e.Handled = True | ||
End If | ||
End Sub | ||
|
||
{% endhighlight %} | ||
|
||
{% endtabs %} | ||
|
||
 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set the width for the pivot columns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SathiyathanamSathish As per your suggestion , I changed the title and content from columns to pivot columns