db.GetProductByOrderID(Convert.ToInt32(lblorderno.Text));
if (ds != null && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
{
for (int i = 1; i < ds.Tables[0].Rows.Count; i++)
{
GrdProduct.DataSource = ds.Tables[0];
GrdProduct.DataBind();
}
}
I directly bind gridview.
Thank You......