Issue With Getting Select All Checkbox Header To Work In Dynamically Created Datagrid

dotnet77

New member
Joined
Jun 10, 2011
Messages
1
Programming Experience
Beginner
Hi,

I've been working on a project for several weeks trying to get one select all checkbox to select all of the child checkboxes in report page.

I've tried using both javascript to select the checkboxes and also just vb without any success.

I created a CheckAllItemCreate sub that is used for the itemcreated event for the dynamically created datagrids. Inside of the sub I call the SelectAllChanged sub which is for the checkchanged event of the header checkbox.

My problem is I need to loop through the datagrid item's of the datagrid but since the datagrid's are dynamically created I don't know how to get the name.



Contact Type (if none selected all types will be reported on):Contact Date:Any
Date:
Time Between: : And :
This Week
Month:
Year:
Date Range:

Start Date:
End Date:
Please click on a category row below to expand it and see the report criteria
DCU_Expand.gif
Contact Reason(s):
DCU_Expand.gif
Non-Member Contacts:Include Non-Member Contacts Do Not Include Non-Member Contacts Only Non-Member Contacts
DCU_Expand.gif
memberWORKS User(s):
DCU_Expand.gif
Department(s):
DCU_Expand.gif
Branch(es):
DCU_Expand.gif
Sales Promotion(s):
DCU_Expand.gif
Display Columns:



Search Results
Time Period:Contact Reason(s):Department(s):Branch(es):User(s):promotion(s):Non-Member Contacts:Total Contacts:
Select All




User:Department(s):Branch(es):promotion(s):Time Period:Total Contacts:
 

Attachments

  • code.txt
    144.6 KB · Views: 24
Back
Top