GrapeCity MultiRow Windows Forms Documentation
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.

Retrieving the Index of the Current Column

You can retrieve the current column index using the GcMultiRow.CurrentCellPosition.RowIndex property.

Retrieving the Index of the Current Column

Using Code

This example gets the current column.

[VB]

Console.WriteLine("Index of the current column: {0}", GcMultiRow1.CurrentCellPosition.RowIndex)

[CS]

Console.WriteLine("Index of the current column: {0}", gcMultiRow1.CurrentCellPosition.RowIndex);

Moving the Current Column

To move the current column, set a new row position in the GcMultiRow.CurrentCellPosition property.

Using Code

This example moves the current column.

Moving the Current Column

[VB]

GcMultiRow1.CurrentCellPosition = New GrapeCity.Win.MultiRow.CellPosition(3, 0)

[CS]

gcMultiRow1.CurrentCellPosition = new GrapeCity.Win.MultiRow.CellPosition(3, 0);
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options