xnTable
Right!
xnTable is a memory structure to store the data to be displayed in one grid.
But you can also have columns in an xnTable that are not displayed in any xnGrid or ... having more xnGrids displaying data of the same xnTable.
In the example i've posted the "other" column is not present in the grid.
So if "gg" is a grid, "tt" is the underlying table and if the column "other" is the 4th column of the table you can get this value with
tt.GetValue ( gg.RowSelected , 3 )
Here about the xnTable object
getRows() number of rows = records
getCols() number of columns = fields
GetValue ( int Row , int Col ) the value of a cell
GetValueSafe ( int Row , int Col ) ... if row and col are valid indexes
in the first case an index out of bounds raises an exception in the second
you'll simply get a null result
SetValue ( int Row , int Col , String Value )
SetValueSafe ( int Row , int Col , String Value )
the setter with the same logic as the previous two
Delete ( int Row ) used to delete the specified row
Insert ( String [] Values , int Row )
InsertFromMap ( Map map , int Row )
used to insert a row in the specified position
you can pass an array of strigns or a map
i'm working to pass a record
Append ( String [] Values )
AppendFromMap ( Map map )
use to append a row ...
i'm also planning to extend the class to have typed columns
and some other features i need to work with database but not only databases!
now i'm fixing the gravity property and finishing the xnGrid object
did i forget something?
