11-29-2008, 07:59 AM
Can use 3 other ways.
1. sqlite. Create temporary table (CQlite.TempTable), add rows (CQlite.Exec), put into grid (CQlite.ToQmGrid). Not the most efficient way, unless you already have sqlite table with query results.
2. LVM_QG_SETALLCELLS message. Need to format multistring.
3. LVM_INSERTITEM and LVM_SETITEMTEXT messages. There is a private function TO_LvAdd in System that simplifies it. Copy it. If needed, add more arguments to support more columns.
1. sqlite. Create temporary table (CQlite.TempTable), add rows (CQlite.Exec), put into grid (CQlite.ToQmGrid). Not the most efficient way, unless you already have sqlite table with query results.
2. LVM_QG_SETALLCELLS message. Need to format multistring.
3. LVM_INSERTITEM and LVM_SETITEMTEXT messages. There is a private function TO_LvAdd in System that simplifies it. Copy it. If needed, add more arguments to support more columns.