次のサンプルコードは、このプロパティを使用して、UI操作によるセルのサイズ変更を許可するかどうかを制御する方法を示します。このサンプルコードは、
GcMultiRow.AllowUserToResizeクラスに示されている詳細なコード例の一部を抜粋したものです。
void makeFirstCellResizable_Click(object sender, EventArgs e)
{
Cell cell = this.gcMultiRow1.Rows[0][0];
// Make cell resizable in two directions.
// You can make any cell can (or can not) resize by change this property's value.
cell.ResizeMode = ResizeMode.Both;
}
Private Sub makeFirstCellResizable_Click(ByVal sender As Object, ByVal e As EventArgs) Handles makeFirstCellResizable.Click
Dim cell As Cell = Me.gcMultiRow1.Rows(0)(0)
' Make cell resizable in two directions.
' You can make any cell can (or can not) resize by change this property's value.
cell.ResizeMode = ResizeMode.Both
End Sub