How can I convert DataRowView type to integer type?

1.3k views Asked by At

How can I convert DataRowView type to integer type?

1

There are 1 answers

1
Praveen k. Agrawal On

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()