How can I convert DataRowView type to integer type?
How c开发者_C百科an I convert DataRowView type to integer type?
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()
精彩评论