|
private void OnAllColumnWidthAndRowHeightClicked(object sender, RoutedEventArgs e)
{
var getRowCount =
pivotGrid1.InternalGrid.Model.RowCount;
//here define the row height for all rows in PivotGrid
for (int i = 0; i <
getRowCount; i++)
pivotGrid1.InternalGrid.RowHeights[i]
= 100;
//here define the column width for all column in PivotGrid
var getColumnCount =
pivotGrid1.InternalGrid.Model.ColumnCount;
for (int i = 0; i <
getColumnCount; i++)
pivotGrid1.InternalGrid.ColumnWidths[i]
= 100;
pivotGrid1.InternalGrid.InvalidateVisual();
}
private void OnSpecificColumnWidthAndRowHeightClicked(object sender, RoutedEventArgs e)
{
//here set the Row height for 5th row in pivotGrid
pivotGrid1.InternalGrid.RowHeights[4]
= 100;
//here set the Row height for 2nd column in pivotGrid
pivotGrid1.InternalGrid.ColumnWidths[1]
= 100;
pivotGrid1.InternalGrid.InvalidateVisual();
}
|