How to set “Unavailable” word for null values in DataGridView
问题 I have an employees table in which first number is set as not null and second number that can be **null* so when I call the employees information to view their information in DataGridView the null values appear as empty cells but I want to show "Unavailable" word instead of the empty cell , so how can I do this? 回答1: You can use either of these options: Set NullValue property of DefaultCellStyle of the column. It sets the cell display value corresponding to a cell value of DBNull.Value or