How to add value to second column using wxListCtrl in wxWidgets (C++ code)??
- by azm882
I've following code:
int column_width = 100;
long indx1 = alist-InsertColumn(0, L"User Name", wxLIST_FORMAT_LEFT, column_width);
long indx2 = alist-InsertColumn(1, L"User Id", wxLIST_FORMAT_LEFT, column_width);
long itemIndex1 = alist-InsertItem(indx1, L"John Smith", -1);
alist-SetItem(indx1, 1, L"jsmith");
I expect to see two columns with…