0

How can I convert DataRowView type to integer type?

mauris
  • 42,982
  • 15
  • 99
  • 131

1 Answers1

0

You cannot convert the actual DataRowView to an integer, but you can convert it's value to an Integer as the SelectedItem() value will always be DataRowView, which cannot be converted. Use the SelectedValue.ToString()

Praveen k. Agrawal
  • 439
  • 1
  • 5
  • 15