GcMultiRow.CellResizeCompletingイベントで
Cell.HorizontalResizeメソッドを使用することで、ヘッダセルがリサイズされた場合にヘッダ領域に収まるセルの横幅を均一にリサイズすることできます。
Imports GrapeCity.Win.MultiRow
Private Sub GcMultiRow1_CellResizeCompleting(ByVal sender As System.Object, _
ByVal e As GrapeCity.Win.MultiRow.CellResizeCompletingEventArgs) Handles GcMultiRow1.CellResizeCompleting
If e.Direction = Orientation.Horizontal AndAlso e.Scope = CellScope.ColumnHeader AndAlso e.CellName = "Header1" Then
Dim springOffset As Integer = e.ResizeOffset / 2
GcMultiRow1(0, "Cell1").HorizontalResize(springOffset)
GcMultiRow1(0, "Cell2").HorizontalResize(springOffset)
e.Handled = True
End If
End Sub
using GrapeCity.Win.MultiRow;
private void gcMultiRow1_CellResizeCompleting(object sender, CellResizeCompletingEventArgs e)
{
if (e.Direction == Orientation.Horizontal && e.Scope == CellScope.ColumnHeader && e.CellName == "Header1")
{
int springOffset = e.ResizeOffset / 2;
gcMultiRow1[0, "Cell1"].HorizontalResize(springOffset);
gcMultiRow1[0, "Cell2"].HorizontalResize(springOffset);
e.Handled = true;
}
}