コード例 #1
0
    protected void btnShow_Click(object sender, EventArgs e)
    {
        DataSet ds = objAdmin.ShowAllCylinders();

        if (ds.Tables[0].Rows.Count > 0)
        {
            fs1.Visible            = true;
            ViewState["ds"]        = ds;
            gvCylinders.DataSource = ds.Tables[0];
            gvCylinders.DataBind();
        }
        else
        {
            gvCylinders.EmptyDataText = "No Data Available";
            gvCylinders.DataBind();
        }
    }