I have a datagridview which gets filled with data returned from a linq query. If the query returns no results I want to display a messagebox. Is there a way of checking to s
You can check the Rows.Count property of the datagridview.
Although you might also want to look into the EmptyDataText property of the DataGridView. It might save you showing a messagebox.