I am using WinForms- I amusing the IsNullOrEmpty method and it says it can not convert from Object to string. I want to test for a null/empty checkbox. What's the best way or how?
if (string.IsNullOrEmpty(dataGrid.Rows[0].Cells[0].Value))
{
MessageBox.Show("The value equals Null.", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
}