Click here to Skip to main content
15,794,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi all

Below is my sql table
ID  |	FiledName  |	FormName	|Value
1   |	Alias	   |    ItemCreation	|0
2   |	Minimum	   |    ItemCreation	|1
3   |	Maximum	   |    ItemCreation	|1
4   |	Current	   |    ItemCreation	|1
5   |	Set	   |    ItemCreation	|1
6   |	Remarks	   |    ItemCreation	|1
7   |	Color	   |    ItemCreation	|1

Now i want is where ever the Value=1 those fields will be enable in the form and Value=0 fields will be enable=false.

FieldName are the textBox in the form.
e.g Alias is txtAlias
Remarks is txtRemarks.

Please tell me how to do this..
Updated 2-Sep-13 19:39pm
syed shanu 3-Sep-13 20:47pm    
What problem you find in this.Crete one Function Load this table to your application .Check filedName and Value .If value =1 then enable that control.if Value= 0 disable that control.Call this function where you need like form load,button Click and etc.

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