G
Guest
I have a form with listview control. The listview control is populated and
sorted in the begining. I want to select and highlight the very first row in
lietview control.
Unfortunately the following doesn't work:
m_FileList->Items->Item[0]->Selected = true ;
because Item[0] is not always displayed first. For example if the item array
is as follows:
Item[0] = "C"
Item[1] = "A"
Item[2] = "B"
Then after initial sorting m_FileList->Items->Item[0]->Selected = true ;
statement will highlight third row.
So my question is how can I select and highlight the very first row in
lietview control?
Thanks
sorted in the begining. I want to select and highlight the very first row in
lietview control.
Unfortunately the following doesn't work:
m_FileList->Items->Item[0]->Selected = true ;
because Item[0] is not always displayed first. For example if the item array
is as follows:
Item[0] = "C"
Item[1] = "A"
Item[2] = "B"
Then after initial sorting m_FileList->Items->Item[0]->Selected = true ;
statement will highlight third row.
So my question is how can I select and highlight the very first row in
lietview control?
Thanks