Exemplo n.º 1
0
        private void gridControl1_Click(object sender, EventArgs e)
        {
            Vizite.PacientiRow randPac = gridView1.GetFocusedDataRow() as Vizite.PacientiRow;
            Informatii         info    = new Informatii(randPac.ID_pacient);

            info.Show();
        }
Exemplo n.º 2
0
        private void gridView1_ValidateRow(object sender, DevExpress.XtraGrid.Views.Base.ValidateRowEventArgs e)
        {
            Vizite.PacientiRow row = gridView1.GetFocusedDataRow() as Vizite.PacientiRow;

            //DevExpress.XtraGrid.Views.Grid.GridView view = sender as DevExpress.XtraGrid.Views.Grid.GridView;


            if (row.IsNumeNull())
            {
                e.Valid = false;
                string err = "You need to text something!";
                e.ErrorText = err;
                gridView1.SetColumnError(colNume, err);
            }
        }