Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I have loaded Grid by a Data table.

Now I want to filter the rows from data table or Grid by this case,


for example Grid has this values.


control
----
 
Drop Down List
Checked List Box
Label Box
File Upload Control
New Print Priview Control


if Type DDL in filter string Drop Down List should be filterd in Grid

Like wise,

CLB- Checked List Box.
NPPC- New Print Priview Control





How to do this?


Thanks & Regards,
Pal.
Posted
Comments
Lantei 30-Mar-12 11:17am    
Its not clear..at least not to me, I'm sorry :-(
Thilina Chandima 30-Mar-12 11:35am    
what is the connection between DDL and the Filtered result set. please explain that, then it will easy to answer your question.

You could add a column with those codes that you do not show in the grid.
Then when the user enters DDL in the textbox you filter the datatable on that column.

C#
DataGrid.DataSource = datatable.Select("ControlCode = " + textbox.text);
 
Share this answer
 
Hi..
the solution 1 is very correct.
to bind the data table when we select ddl or check box get filter the values in grid view.

But try to implement same thing using linq to object or linq to sql

it will definatly improve the performance as well as will help to get mor functionality

Thanks
 
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