Show message in empty cells in GridView
问题 I'm importing GridView from excel I need to show a message near every empty cell to give the user information about what it should be writing.. void simpleButton1_Click(object sender, System.EventArgs e) { string[] msg = new string[60]; string[] error = new string[400]; for (int i = 0; i < gridView3.RowCount ; i++) { System.Data.DataRow Rows = gridView3.GetDataRow(i); string cellvalue = Rows[0].ToString(); if (cellvalue == "") { msg[0] = "Missing 'First Name'"; error[i] = msg[0] + " - "; }