This is a migrated thread and some comments may be shown as answers.

GridViewBooleanColumn: error with SelectionMode set to CellSelect

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Emanuele Savarese
Top achievements
Rank 1
Emanuele Savarese asked on 13 Jan 2008, 09:46 PM
WinForms RadControl Q3 2007

When I set SelectionMode to GridViewSelectionMode.CellSelect columns GridViewBooleanColumn don't save data and event ValueChanged doesn't fire.
With SelectionMode to FullRowSelect work fine!

Thanks in advance,
Emanuele Savarese

This is sample code to reproduce error:

        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"); 
 
            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.SelectionMode = GridViewSelectionMode.CellSelect; 
            radGridView1.DataSource = dt
        } 
 

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 15 Jan 2008, 05:06 PM
Hello Emanuele Savarese,

Thank you for reporting this.

This behavior is due to the incomplete status of the implementation of CellSelect mode. We will introduce the full-featured selection mode of the RadGridView in the next major version.

If you need further assistance, please contact us.

Greetings,
Georgi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Emanuele Savarese
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or