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

Check CellValue when cell is loading and make it as readonly

2 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ramesh
Top achievements
Rank 1
Ramesh asked on 21 Mar 2013, 01:29 PM
Hi Experts,

I am creating an WPF application, in that i am adding new records from code behind. When the record is loading in grid, i need to check the cell value of a column and based on that cell value , i will make the next cell as ReadOnly/Editable.

Ex:

When record loading,

If the 2nd column's cell value is <4 then i have to make 3rd column cell as ReadOnly cell.

I have attached an image for your refrence, from that you can see based "CheckWeight" column the "Size" column will be as ReadOnly or Editable with Dropdown list.

Please help me anybody by giving ideas like, how to check cell values while record is loading and make other cells as readonly cell

Thanks in advance.
Ramesh
velusamyr@hcl.com

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 21 Mar 2013, 01:32 PM
Hello Ramesh,

I would suggest you to define a CellStyleSelector for the column.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ramesh
Top achievements
Rank 1
answered on 21 Mar 2013, 01:49 PM
Hello,

Thankyou for your quick response.
Please give some ideas to Check the cellvalue and disable editing for other cells.

Thanks,
Ramesh
velusamyr@hcl.com
Tags
GridView
Asked by
Ramesh
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Ramesh
Top achievements
Rank 1
Share this question
or