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

CheckBox with Expression

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Duang
Top achievements
Rank 1
Duang asked on 10 Sep 2008, 11:18 AM


Dear All
I'm have some question about  RadGridView .
I'm insert checkBox in RadGridView and i have button force select all checkbox in Radgridview by this command 

        this
.RadGridView .Columns["check"].Expression. = true.ToString();

after that i can't uncheck some checkbox  in Radgridview .

Can u help me for sold this problem ?




 

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 11 Sep 2008, 07:29 AM
Hi Duang,

Thank you for contacting us.

The Expression property of GridViewColumn makes the column calculated and therefore read-only. This behavior is by design and is the same as in Microsoft's DataGridView.

You can initialize your cells by iterating through the Rows collection of RadGridView. Consider the code snippet below:

foreach (GridViewRowInfo row in this.RadGridView.Rows) 
    row.Cells["check"].Value = true
 

I hope this helps. Do not hesitate to write us if you need further assistance.

Best wishes,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Duang
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or