The attached code shows how to fill a view with some data. All well and good, but suppose I want to use the view to show varying "amounts" of data. For example, the first time, I might have 3 columns and 4 rows of data. The second time, 10 columns and 20 rows, and the third time, 2 columns and 5 rows.
The code shows how to delete the actual data rows, but how do I delete the view headers ?
Get the handle to the control and call GuiSendMsg, sending a "DELETECOLUMN" event, and one arg that is the column number to delete (where 1 is the first column).