コード例 #1
0
        private void addGroupToolStripButton_Click(object sender, EventArgs e)
        {
            UserGroup group = new UserGroup();

            if (EditEntry(group) == DialogResult.OK)
            {
                _context.AddToUserGroups(group);
                _groups.Add(group);

                //int index = user_RadGridView.Rows.Count - 1;

                //user_RadGridView.Rows[index].IsSelected = true;

                //In case if you want to scroll down as well.
                user_RadGridView.TableElement.ScrollToRow(0);

                foreach (var row in user_RadGridView.Rows)
                {
                    row.Cells[0].Value = false;
                }
            }
        }