Hi...
I saw the solution 4 and I guessed interesting.
Well, in my case I created one WebUserControl for No data message called uscNoDataTemplate , and I needed set it up by public methods and properties, so...
DataView dv = ds.Tables[0].DeafultView;
grd.DataSource = dv;
grd.DataBind();
UserControls.uscNoDataTemplate uscNoDataTemplate1 = ((GridViewRow)grd.Controls[0].Controls[0]).Cells[0].FindControl("uscNoDataTemplate1") as UserControls.uscNoDataTemplate;
if(uscNoDataTemplate1 != null)
{
uscNoDataTemplate1.MyNoDataMessage = "Unfortunately you do not have data!";
}
Hope it helps you...