Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 DataRowView 类型转换为整数类型?
您无法将实际的 DataRowView 转换为整数,但可以将其值转换为 Integer,因为 SelectedItem() 值将始终为 DataRowView,无法转换。使用 SelectedValue.ToString()