09-10-2013 01:25 AM
Hello,
I looking a way for fast loading data to table.
For example:
I have data structure of Students.
struct STUDENTS
{
int ID;
char Name[15];
char Lname[20];
int Picture_BitmapID;
}
I create a table wich collumns suitable data types. (Numeric[int], string,string,picture).
I have 10,000 records. If i using "for" loop on each row and use SetTableCellAttribute(,,ATTR_CELL_VAL,) its very slow for each cell.
Is there a way to load data more faster?
Best Regards
Boris
09-10-2013 01:54 AM
To optimize performance and minimize the number of times that a table draws, use the SetTableCellRangeVals and FillTableCellRange functions. These functions set the values of multiple table cells, so they are more efficient than calling SetTableCellVal multiple times.
To minimize the number of times that a table draws, you can hide the table prior to calling SetTableCellRangeVals or SetTableCellVal.
09-10-2013 05:50 AM
09-10-2013 06:26 AM