I want to show a message on the screen if a search returns no records in a datasource, just not sure of the syntax,
eg
if(gridview.datasource.[number of records] = 0)
{
do a thing
}
or evaluate the linq query behind the datasource,
any ideas?
thanks
You can use the Rows collection of the gridview.