Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi good morning code project.

am using dynamic in my project
i want to disable records dynamically
in my table one column contains changable if it is set to true then displayed data in page should be disabled..if it is false data will be enabled.so how can i do coding here.
any one suggest me..
thank you
Posted
Updated 4-Sep-12 19:54pm
v3
Comments
AmitGajjar 5-Sep-12 2:05am    
filter in where clause of your SQL query.
ythisbug 5-Sep-12 2:11am    
ok thank u

1 solution

I guess you are using a grid view control.
Bind your Ischangeable Column (column that contains changable value) to a hidden control. So in every row you have the value available with the hidden control.

In the row data bound event find the hidden control and all the other controls instances. obtain the value value bound to hidden control.
And as per it's value, set the enable property of all the controls.
 
Share this answer
 
Comments
ythisbug 5-Sep-12 2:11am    
ok thank u

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900