
An updatable Tag object for each row could also accomplish the same thing, using a Type. Example: c0.Initialize ( "ID", "locId", 140dip, False ) - updatable but not visible in grid. When a row/col is modified, the Edit col is set to 1 (or 2 for delete). These columns would be: PKey_Col and Edit_Col. In the example above, I would like to use two (or more) "hidden" columns - (can update the contents but not display in the grid). I now see how difficult it would be to impliment a full DBGrid without a DataSet object to help determine the table structure. However, since this lib is not a DBGrid, the developer must take the appropriate actions to Update the source table with applicable edits or deletions - usually when "Finished" using the grid. GREAT! It seems that only columns "added" can be get/set.

The grid row select event determines the row selected by user, and can get / set the values for any column added above. Now, create the grid object and columns.Ĭ0.Initialize ( "ID", "locId", 140dip )Ĭ1.Initialize ( "State", "region", 120dip )Īctivity.AddView ( gg ,10dip, 10dip, 100%x, 100%y ) Tt.Append ( Array As String ( cur.GetInt("locId"), cur.GetString("region"), cur.GetString("city"), "o=" & r ) ) Tt.Initialize( Array As String ("locId", "region", "city", "other" ) ) To populate these fields from a sql table:Ĭur = SQL2.ExecQuery( "SELECT * FROM Location WHERE region = 'ON'") One may declare many fields with xnTable.Initialize( Array As String ("locId", "region", "city", "other" ) ). From what I can determine, the xnTable is a memory map of string "fields". The grid is, in many cases, used to display records from a sql table.

Removed PropSetColor / PropSetTextColor Added FirstVisiblePosition() and LastVisiblePosition() Sample code and usage hints can be found here Added Typeface support for rows and hedaer This library allows to create easely grids/tables and
