Exemplo n.º 1
0
 private void GetRecords(int Id)
 {
     DataTable table = BAL_Zonecomponents.SelectZonecomponent("selectbyid", Id);
     {
         txtZone.Text = Convert.ToString(table.Rows[0]["ZoneName"]);
     }
 }
Exemplo n.º 2
0
    private void FillGrid()
    {
        DataTable table = BAL_Zonecomponents.SelectZonecomponent("selectall", 0);

        gvAdminList.DataSource = table;
        gvAdminList.DataBind();
        if (gvAdminList.Rows.Count > 0)
        {
            lblsearch2.Visible = true;
        }
        else
        {
            lblsearch2.Visible = false;
        }
    }