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

is there any posibility after displaying all the records of table in a gidview controller for applying filter on any one column by user selection
if there exist give a sample code for this problem
Posted
Updated 9-Aug-10 4:23am
v2
Comments
T.Saravanann 9-Aug-10 8:56am    
Hi,
Your question is not clear.
1.Column selection is user choice or already selected column.
2.where user give the criteria for filter. are you using any TextBox control.
sKumarnvs 9-Aug-10 9:06am    
Hai Saravanan

Recently i had send code that has written by that is two comboboxes and one gridview controller but i hadn't recieve any solution for that problem that's why i am asking again
T.Saravanann 9-Aug-10 9:09am    
Hi Kumarn,
I already reply for your previous question.Now u check it that question.
sKumarnvs 9-Aug-10 9:18am    
hai Saravanan

after adding u r code also it gives an error but i am sending that error along eith code that had written by me
sKumarnvs 10-Aug-10 2:26am    
Hai saravanan

Today i has benn solved that problem by adding valuemember to that combobox

Thank you

try this example

row filter example
 
Share this answer
 
yes you need to provide the index value for that particular row.

dgvGridName[row_Index,Col_index].value.tostring().eqquals(cmbCmobotext.text)
so using that you can select the respective combo box value as filter.
 
Share this answer
 
Comments
sKumarnvs 10-Aug-10 2:27am    
hai Balkrishnaraut

I has benn solved that problem by adding valuemember to that combobox

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