示例#1
0
        private void grv_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            string         pid = grv.GetFocusedRowCellValue(colPID).ToString();
            ServerToClient sc  = new ServerToClient();
            PatientContext px  = new PatientContext();

            sc = px.GetTreatments(pid);

            grdT.DataSource = sc.DT;

            grvT_FocusedRowChanged(null, null);
        }