در زمان استفاده از کد زیر خطا نمایش داده می شود
((DataRowView)comgroup.SelectedItem)["id"]
خطای زیر نمایش داده می شود
علت خطا چیستUnable to cast object of type 'myazmoon.TBLGROUP' to type 'System.Data.DataRowView'.
در زمان استفاده از کد زیر خطا نمایش داده می شود
((DataRowView)comgroup.SelectedItem)["id"]
خطای زیر نمایش داده می شود
علت خطا چیستUnable to cast object of type 'myazmoon.TBLGROUP' to type 'System.Data.DataRowView'.