WinForms RadControls Q3 2007
Visual Studio 2005
.NET 2.0
In other grid when I work with check box column I can set value of checkbox pressing space bar. I tried to set value with space bar but RadGridView have a strange behaviour.
1. on first load on first row press once space bar but grid doesn't check
2. after few seconds press another time space bar and grid check cell
3. go to second row with arrow keys
4. press space bar first time on second row and... check on first row disappear ?!? and on check on second row stay off
5. press space bar second time on second row and appears check on second row
6. go to third row and appers check also on the first row ?!?!?
I want a simple way to set checkbox in column similar Microsoft standard control ListView when set with CheckBoxes = true.
Placed a listview and a radgridview this code can reproduce error and my favourite behaviour.
Thanks in advance,
Emanuele Savarese
Visual Studio 2005
.NET 2.0
In other grid when I work with check box column I can set value of checkbox pressing space bar. I tried to set value with space bar but RadGridView have a strange behaviour.
1. on first load on first row press once space bar but grid doesn't check
2. after few seconds press another time space bar and grid check cell
3. go to second row with arrow keys
4. press space bar first time on second row and... check on first row disappear ?!? and on check on second row stay off
5. press space bar second time on second row and appears check on second row
6. go to third row and appers check also on the first row ?!?!?
I want a simple way to set checkbox in column similar Microsoft standard control ListView when set with CheckBoxes = true.
Placed a listview and a radgridview this code can reproduce error and my favourite behaviour.
Thanks in advance,
Emanuele Savarese
private void Form1_Load(object sender, EventArgs e) | |
{ | |
DataTable dt = new DataTable(); | |
dt.Columns.Add("From", typeof(bool)); | |
dt.Columns.Add("To", typeof(bool)); | |
dt.Columns.Add("Description", typeof(string)); | |
dt.Rows.Add(false, false, "hi1"); | |
dt.Rows.Add(false, false, "hi2"); | |
dt.Rows.Add(false, false, "hi3"); | |
dt.Rows.Add(false, false, "hi4"); | |
dt.Rows.Add(false, false, "hi5"); | |
dt.Rows.Add(false, false, "hi5"); | |
dt.Rows.Add(false, false, "hi6"); | |
dt.Rows.Add(false, false, "hi7"); | |
dt.Rows.Add(false, false, "hi8"); | |
dt.Rows.Add(false, false, "hi9"); | |
dt.Rows.Add(false, false, "hi10"); | |
radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false; | |
radGridView1.Columns.Add(new GridViewBooleanColumn("From")); | |
radGridView1.Columns[0].IsPinned = true; | |
radGridView1.Columns.Add(new GridViewBooleanColumn("To")); | |
radGridView1.Columns[1].IsPinned = true; | |
radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); | |
radGridView1.Columns[2].ReadOnly = true; | |
radGridView1.Columns[2].Width = 600; | |
radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect; | |
radGridView1.DataSource = dt; | |
listView1.View = View.Details; | |
listView1.FullRowSelect = true; | |
listView1.CheckBoxes = true; | |
listView1.Columns.Add("To"); | |
listView1.Columns.Add("Description"); | |
listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi1" })); | |
listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi2" })); | |
listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi3" })); | |
} |