Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i have datatable which i pass from one page to other using session

in second page, i want to use datatable to display in div..also i use checkboxes in second page for filtering from datatable

how to convert datatable to gridview ..or u suggest what to use ???

also i want to filter using checkbox , how to do this

regards
Posted
Comments
Sibasisjena 2-Jan-14 8:43am    
Hi Maulikshah,

Can you please post your code. What have you done to achieve this.
maulikshah1990 2-Jan-14 8:46am    
I have big code
i insert into datatable columns rows from database in test1.aspx.

and in test2.aspx, i want to convert into gridview...
also i want to use checkbox on select, filter datatable or gridview (whichever)
or in what format i can convert datatable in which checkbox filter can be used

i hope you understood

1 solution

Quote:
how to convert datatable to gridview ..or u suggest what to use ???
C#
yourGridViewID.DataSource = dt; // dt is the DataTable.
yourGridViewID.DataBind();


Quote:
also i want to filter using CheckBox , how to do this
If you know how to filter GridView rows, then it really does not matter when to filter. This is because it is the event which matters. You need to filter GridView in the appropriate Event according to your requirements.

According to your question, you should filter GridView inside CheckBox CheckedChange Event either in Client or Server side.
 
Share this answer
 

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