Exemplo n.º 1
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
            OperationsCategory obj = new OperationsCategory();

            obj.ShowDialog();
            fillGrid();
        }
Exemplo n.º 2
0
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            int RowId = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "OperationsId").ToString());

            if (RowId > 0)
            {
                OperationsCategory obj = new OperationsCategory();
                obj.OperationId = RowId;
                obj.ShowDialog(this);
                fillGrid();
            }
        }