Define "not working".
- What does
return?Code:int nItem = ctlRightView.GetItemCount();
- What does
return?Code:int index = ctlRightView.InsertItem(nItem, league);
- Why do you every time insert the column 1? Where and how did you insert the column 0?
Printable View
Define "not working".
- What does
return?Code:int nItem = ctlRightView.GetItemCount();
- What does
return?Code:int index = ctlRightView.InsertItem(nItem, league);
- Why do you every time insert the column 1? Where and how did you insert the column 0?
During the first call of Display()
this one returns 0Code:int nItem = ctlRightView.GetItemCount();
this also return 0Code:int index = ctlRightView.InsertItem(nItem, league);
Output is
First(column name)
brother
..................................................
and the when the second tokenozed opens comes it again calls Display()
both the above code returns 0 only. i see only
First(column name)
man
but not
First(column name)
man
brother
-----------------------------------------
Answer for ur 3rd ques: Like i call insertcolumn in index 0 only how do i stop thatInsertColumn() function call alone while second time this Display() is called??
Good! It is correct and as expected.
Well, if GetItemCount() returns zero than either you have deleted the item before this call or you "occasionally" created another list control :confused:
But why do you insert new column every time you are going to insert a new item? Why not to do it once somewhere in OnInitialUpdate()?