Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Friends

My query i want to show the data in gridview with the help of checkboxlist outside the gridview on button click ..
My controls

2 textbox for dates
button (submit)
checkboxlist

i just want to display the data in gridview when i click on the checkboxlist (when i select 3 items OR all items from checkboxlist)

Kindly need help to resolve the issue ..
Kindly help me with code for the same.....

Thanks in advance

Pratham
Posted
Comments
SASS_Shooter 5-Jul-12 17:13pm    
Kindly get off your lazy, fat, butt and write the code yourself or find another career.

1 solution

Kindly help me with code for the same.....
Why code? Why cannot you do it by yourself? Make some effort!


Kindly need help to resolve the issue ..
What issue? You did not mention your issue at all.


Steps:
1. Put textboxes and checkboxlist in a page along with submit button and a hidden gridview.
2. Once submit button is clicked, get values of textbox and checked items from checkboxlist
3. Form a query based on the values and get data related to them from database
4. Bind the data to datagrid, make it visible.

Try!
 
Share this answer
 
Comments
[no name] 5-Jul-12 4:49am    
My 5+
pratham2587 5-Jul-12 5:11am    
mY design look like this

textbox for from and to date ,
checkboxlist with item in it(eg.a,b,c,d,e)
submit button

I want to display data in grid view
when i put the date in text box and by selecting 3 items from checkboxlist
i want to display the data for those selected items only in gtridview from database .
If i am selecting 3 or 4 items from checkboxlist or even single item data for that item should only get displayed in gridview
that is my query
Sandeep Mewara 5-Jul-12 5:57am    
And I explained exactly that. Find the values selected in checkboxlist and then use that as a filter parameter in query or data. (Step 3 above)

:)

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