chriscorran
Programmer
Hello !!!!!!!!!
I need to be able to pull out the first column value for a specific row using the list control. I can do it but only if I click the actual first column. Is it possible to choose the first column value even if I click the second or third column. It's really easy in VB but I just can't do it in VC++. It must be possible.
Just for explanations sake the list control is made up three columns
ID firstName secondName
3 Billy conway
4 fred flintstone
7 Jenny James
9 Phill Peters
Heres what I got to pull out the first column value, but it only works if I click the first column.
int item = m_lv_control.GetNextItem(-1, LVNI_SELECTED);
varValue = m_lv_control.GetItemText(item,0);
Please help !!!
Thanks in advance.
I need to be able to pull out the first column value for a specific row using the list control. I can do it but only if I click the actual first column. Is it possible to choose the first column value even if I click the second or third column. It's really easy in VB but I just can't do it in VC++. It must be possible.
Just for explanations sake the list control is made up three columns
ID firstName secondName
3 Billy conway
4 fred flintstone
7 Jenny James
9 Phill Peters
Heres what I got to pull out the first column value, but it only works if I click the first column.
int item = m_lv_control.GetNextItem(-1, LVNI_SELECTED);
varValue = m_lv_control.GetItemText(item,0);
Please help !!!
Thanks in advance.