ListView in c++ windows forms applications
-
I found how to get the index of row in listview when you DoubleClick this is the code ///////////////////////////////////////////////////////////////////// String *field1; int rowvar=1; field1 = listView1->Items->Item[listView1->FocusedItem->get_Index()]->SubItems->Item[rowvar]->Text; ///////////////////////////////////////////////////////////////////// This Works very fine, But i need to sort the values in the listview when i click on a column. any one have idea how to sort by header??? :confused:
-
I found how to get the index of row in listview when you DoubleClick this is the code ///////////////////////////////////////////////////////////////////// String *field1; int rowvar=1; field1 = listView1->Items->Item[listView1->FocusedItem->get_Index()]->SubItems->Item[rowvar]->Text; ///////////////////////////////////////////////////////////////////// This Works very fine, But i need to sort the values in the listview when i click on a column. any one have idea how to sort by header??? :confused: