in try catch block write code as per solution 1
catch(exception ex)
{
Label10.Text = ex.message + "Your message here";
}
i think when you bind gridview you are not executing command so no data coming. and you have not define the datasource of gridview.