Ejemplo n.º 1
0
        private void btnAddTarget_Click(object sender, EventArgs e)
        {
            int[]           rowHandles = this.gridView1.GetSelectedRows();
            ucSportDiaryAdd da         = new ucSportDiaryAdd();

            if (rowHandles != null && rowHandles.Length > 0)
            {
                var userID = gridView1.GetRowCellValue(rowHandles[0], "user_id").ToString();
                da.SetValue(userID);
            }
            DialogResult dr = da.ShowDialog();

            if (dr == DialogResult.OK)
            {
                GetData();
            }
            da.Dispose();
        }