MultiRow Windows Forms > Developer's Guide > Using MultiRow > Column Mode > Current Column |
When performing column operations in column mode, you can use the row index to specify the target column since the rows and columns are reversed.
This section describes how to perform operations for the current column.
You can retrieve the current column index using the GcMultiRow.CurrentCellPosition.RowIndex property.
This example gets the current column.
Console.WriteLine("Index of the current column: {0}", GcMultiRow1.CurrentCellPosition.RowIndex) |
Console.WriteLine("Index of the current column: {0}", gcMultiRow1.CurrentCellPosition.RowIndex); |
To move the current column, set a new row position in the GcMultiRow.CurrentCellPosition property.
This example moves the current column.
GcMultiRow1.CurrentCellPosition = New GrapeCity.Win.MultiRow.CellPosition(3, 0) |
gcMultiRow1.CurrentCellPosition = new GrapeCity.Win.MultiRow.CellPosition(3, 0); |