Click here to Skip to main content
15,913,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello :)

I have a project that uses a nested grid view. Part of the requirements is that I will display the milestone, checklist and activity added by the user. At first, The user will input numbers(Contract Number) and will search to the database if it exist. If it is,it will display the name of that person with that contract number. if the user selects a milestone name, s/he will press the Add checklist button and will select the checklist under that milestone. but in checklist, there are two types- the standard and non standard. in each checklist it contains activity. activity is categorized as repeatable and non repeatable. Now, the rule here is that, if the user selects a Standard Checklist(in a from of check box list),all repeatable activities can be selected and the non repeatable checklist were all disabled. if the user selects Non Standard Checklist(Check box list control), s/he cannot select all the activities. Only one activity can s/he checks. and lastly, if the user selects again the existing checklist that s/he add, only the repeatable activities can be selected. the non repeatable activities are disabled. What I have tried is adding all the activities and checklist that the user selects and put it inside the grid view. But I cannot or I should say i do not exactly know on how to disable the records that are in the rules.
Can anyone help me?
Posted
Updated 26-Aug-14 15:12pm
v2
Comments
[no name] 26-Aug-14 21:07pm    
"Can anyone help me?" maybe, yes, no. Other than this question, you did not ask any question, tell us what you have tried to do to accomplish your homework or explain an actual problem with the code that you have written.
[no name] 26-Aug-14 22:44pm    
You can do it in RowDatabound event check with your condition make enable and disable

1 solution

First of all, identify the Event in which you will be disabling the records that means I guess disabling the checkbox on the row.

Now, if the event is a GridView Event, then you can easily find the current row and enable/disable the checkbox inside that.

If that is a Control Event, then you have to loop through the GridView records to get then in a loop and enable/disable them one by one.
 
Share this answer
 
Comments
DarkDreamer08 27-Aug-14 1:53am    
Thank you Tadit Dash!!! :)
Welcome. :)
DarkDreamer08 1-Sep-14 21:11pm    
Help me :( http://www.codeproject.com/Questions/813709/How-t-make-an-auto-complete-textbox-without-using
PLEASE :(

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