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
0 Comments
Leave a Reply. |