Operating system requirements: iOS 5.0 or later.
Mobile device: iPad.
This example removed the specified rows and columns of table selection area.
Executing the example requires to place the following code instead of the executeExample method of the ViewController class (see the Creating a Simple Data Grid section):
// Function for example execution -(void) executeExample{ // Enable selection [contr setCanSelect:YES]; }; // Handle table selection area change event - (void)gridViewSelectionChanged:(NuGridView *)gridView{ // Get selected table area NuGridSelectionArea *selectionArea = [gridView selectionArea]; // Remove specified rows and columns NSArray *colArr = [[NSArray alloc] initWithObjects:[gridView columnWithNumber:2], nil]; NSArray *rowArr = [[NSArray alloc] initWithObjects:[gridView rowWithNumber:2], nil]; [selectionArea removeRows:rowArr andColumns:colArr]; }
Select table cell the way it is shown in the following screenshot:
After that change the selection area the way it is shown in the following screenshot:
As a result, the selection area is restored to its initial state.
See also: