hi
instead of use this
if(DetailsView1.Rows.Count != 0)
{
Label compname = (Label)DetailsView1.Rows[1].Celles[0].FindControl("complbl");
}
use the following
if(DetailsView1.Rows.Count != 0)
{
Label compname = (Label)DetailsView1.Rows[1].FindControl("complbl");
}