我做了这个代码
(DataGridViewRow dgRow in dgvMarksEntryForClass.Rows)
{
if (dgRow.Cells["dgcolMarksObtain"].Value.GetType is decimal)
{
//some action
}
else {
//some action
}
}
如何检查值是否
dgRow.Cells["dgcolMarksObtain"].Value.GetType
是十进制类型的吗?