private void DTCT_gridViewColumnsQLID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == (Keys.Control | Keys.C)) { //Copy id customer Clipboard.SetText(DTCT_gridView.GetFocusedRowCellValue("QLID").ToString()); } }
private void Load_DTCT_GridView() { DUTOANCONGTRINHController dtctcontroller = new DUTOANCONGTRINHController(); var dUTOANCONGTRINHmodels = dtctcontroller.GetDUTOANCONGTRINH(DTCT_bsFromToDateEdit.FromDate.Date, DTCT_bsFromToDateEdit.ToDate.Date); dtctData = new BindingList <DUTOANCONGTRINHmodel>(dUTOANCONGTRINHmodels); DTCT_gridControl.DataSource = dtctData; //reset list chứa dữ liệu delete dtctDataDelete = new List <DUTOANCONGTRINHmodel>(); DTCT_gridView.RefreshData(); }