示例#1
0
        private void barButtonItem7_ItemClick(object sender, ItemClickEventArgs e)
        {
            int count = gridView1.DataRowCount;

            if (count != 0 && gridView1.FocusedRowHandle != DevExpress.XtraGrid.GridControl.AutoFilterRowHandle)
            {
                System.Data.DataRow row = gridView1.GetDataRow(gridView1.FocusedRowHandle);
                int           code      = Convert.ToInt32(row[0]);
                int           id        = Convert.ToInt32(row[14]);
                Avoircommande avoir     = new Avoircommande(code, id);
                avoir.ShowDialog();
            }
        }