private void Form1_Load(object sender, EventArgs e)
{
// Use AllowUserToResize property can disable/enable MultiRow control's UIResize.
this.gcMultiRow1.AllowUserToResize = true;
// Show resize tip when UI resize.
this.gcMultiRow1.ShowResizeTip = ResizeMode.Both;
// Customize resize tip.
this.gcMultiRow1.ResizeTipTextNeeded += new EventHandler<ResizeTipTextNeededEventArgs>(gcMultiRow1_ResizeTipTextNeeded);
}
void gcMultiRow1_ResizeTipTextNeeded(object sender, ResizeTipTextNeededEventArgs e)
{
// Customize 1nd column's resize tip and 1nd rows resize tip.
if (e.CellIndex == 0 || e.RowIndex == 0)
{
string direction = "height";
if (e.Direction == Orientation.Horizontal)
{
direction = "width";
}
e.ResizeTipText = "Cell " + direction + " resize from " + e.OldValue + " to " + e.NewValue;
}
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
' Use AllowUserToResize property can disable/enable MultiRow control's UIResize.
Me.gcMultiRow1.AllowUserToResize = True
' Show resize tip when UI resize.
Me.gcMultiRow1.ShowResizeTip = ResizeMode.Both
End Sub
Private Sub gcMultiRow1_ResizeTipTextNeeded(ByVal sender As Object, ByVal e As ResizeTipTextNeededEventArgs) Handles gcMultiRow1.ResizeTipTextNeeded
' Customize 1nd column's resize tip and 1nd rows resize tip.
If e.CellIndex = 0 OrElse e.RowIndex = 0 Then
Dim direction As String = "height"
If e.Direction = Orientation.Horizontal Then
direction = "width"
End If
e.ResizeTipText = "Cell " + direction + " resize from " + e.OldValue.ToString() + " to " + e.NewValue.ToString()
End If
End Sub