Hi,
please look into follwoing code ,may be it can help u to fix your issue.
protected void gvdetails_RowDataBound(object sender, GridViewRowEventArgs e)
{
#region Getting Data from database
DBConnection bd = new DBConnection();
DataSet ds = new DataSet();
ds = bd.FromDatabase("Select VendorId from DailyIncome");
#endregion
if (e.Row.RowType == DataControlRowType.DataRow)
{
string temp = "";
Label LblError = (Label)e.Row.FindControl("lblShow");
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
temp += ds.Tables[0].Rows[i][0].ToString();
}
LblError.Text = temp;
}
}
jmd:-)