11,582 questions
If StudentList_Form is your DataListView, you can get it with :
StudentList_Form.SelectedItem.SubItems[1].Text;
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear All,
Originally, "Student ID" was in column 0. I got it by using the statement "StudentList_Form.FocusedItem.Text". Now "Student ID" moves to column 1 and "StudentList_Form.FocusedItem.Text" will return "Asiagift". I'd like to ask how to get the value of "Student ID" (i.e., 000159)?
If StudentList_Form is your DataListView, you can get it with :
StudentList_Form.SelectedItem.SubItems[1].Text;