Hello,
I am trying to create a simple list view with two columns (FirstName, LastName). I have tried everything but I cant get the second column (the sub item) to appear. Here is the code I am using:
item_index = ListView_ItemAdd('(L) List View1',"AARON" , 0);result = ListView_ItemSetSubitem('(L) List View1', item_index, 1, "FITZ");column_index = ListView_ColumnAdd('(L) List View1', "First Name", 0);column_index = ListView_ColumnAdd('(L) List View1', "Last Name", 1);
Your help is much appreciated.Ruaa
I can't see anything wrong with the code.
Do you get two column headings?
David Musgrave [MSFT]Escalation Engineer - Microsoft Dynamics GPMicrosoft Dynamics Support - Asia Pacific
Microsoft Dynamics (formerly Microsoft Business Solutions)http://www.microsoft.com/Dynamics
mailto:David dot Musgrave at microsoft dot comhttp://blogs.msdn.com/DevelopingForDynamicsGP
Any views contained within are my personal views and not necessarily Microsoft policy.This posting is provided "AS IS" with no warranties, and confers no rights.
Hi David,
No I dont get any headings at all. The only thing that is displayed is the text "AARON".
Ruaa
Anybody can help on this? I am trying to create similar List View, but I am getting same results as Roaa above.
You have to set the view mode, which isn't really mentioned except in the function reference.
local integer previousViewMode = ListView_SetView('(L) Your List View', LV_REPORT_VIEW);
Constant Description
LV_SMICON_VIEW Small icon view
LV_LGICON_VIEW Large icon view
LV_LIST_VIEW List view
LV_REPORT_VIEW Report view
Scott, thanks that solves my issue.