Example #1
0
        private void cbBTrangthai_SelectedIndexChanged(object sender, EventArgs e)
        {
            int tt = cbBTrangthai.SelectedIndex + 1;

            grCtrlDH.DataSource = dhDAO.GetListDhByTT(tt);
            if (grViewDH.RowCount > 1)
            {
                grViewDH.FocusedRowHandle = 1;
                grViewDH.FocusedRowHandle = 0;
            }
            else if (grViewDH.RowCount == 1)
            {
                //int idDh = (int)grViewDH.GetRowCellValue(0, "ID");
                //dh = dhDAO.GetDHById(idDh);
                //List<CHITIETDONHANG> lstCTDH = dhDAO.GetCTDH(dh.ID);
                //grCtrlCTDH.DataSource = lstCTDH;
                Hienthi();
            }
        }