public void LoadGara()
        {
            DataTable dt = Gara.GetAllGara();

            if (dt != null)
            {
                if (dt.Rows.Count > 0)
                {
                    DataRow row = dt.NewRow();
                    row["ID"]   = "0";
                    row["Name"] = "--Tất cả--";
                    dt.Rows.InsertAt(row, 0);

                    cbGara.DisplayMember = "Name";
                    cbGara.ValueMember   = "ID";
                    cbGara.DataSource    = dt;
                }
            }
        }
Exemplo n.º 2
0
 private void GetDSGara()
 {
     grdDSGara.DataMember = "listGara";
     grdDSGara.SetDataBinding(Gara.GetAllGara(), "listGara");
 }
Exemplo n.º 3
0
 private void LoadDSGara()
 {
     G_Gara = Gara.GetAllGara();
 }