Hi
I have ListView with data and i need text value of selectedItem , when i use this code :
I also used this code :
when i use data set control its fine and it returns Correct value (for example UserName)!
What have I done wrong?
I have ListView with data and i need text value of selectedItem , when i use this code :
this.label1.Text = this.lstUser.SelectedItem.Text.ToString().Trim();it returns: "System.Data.DataRowView"I also used this code :
this.txtUserPass1.Text = this.lstUser.Items[lstUser.SelectedIndex].Value.ToString().Trim();when i use data set control its fine and it returns Correct value (for example UserName)!
What have I done wrong?
