ASP.NET Gridview, bring highlighted rows to top
-
I have a grid view which can have any number of records. I have a text box to search for card numbers. I highlight the rows with matching card numbers in RowDataBound event. Now i want to bring the Highlighted rows to top. I do not want to remove all other records. I want to show all records and want to bring highlighted records to top. I urgently need the solution for this query. Any help will be appreciated. Thanks in Advance! Inderjeet Kaur
Inderjeet Kaur Sr. Software Engg
-
I have a grid view which can have any number of records. I have a text box to search for card numbers. I highlight the rows with matching card numbers in RowDataBound event. Now i want to bring the Highlighted rows to top. I do not want to remove all other records. I want to show all records and want to bring highlighted records to top. I urgently need the solution for this query. Any help will be appreciated. Thanks in Advance! Inderjeet Kaur
Inderjeet Kaur Sr. Software Engg
could be possible by changing sql query like select * from table1 where column =searchcondition union all select * from table1 where column<> searchcondition.. try it.. in sql first..
-
could be possible by changing sql query like select * from table1 where column =searchcondition union all select * from table1 where column<> searchcondition.. try it.. in sql first..
Hey Thanks Alot! It worked. I actually implemented the same thing in my code behind. Tahnks ALot!
Inderjeet Kaur Sr. Software Engg
-
Hey Thanks Alot! It worked. I actually implemented the same thing in my code behind. Tahnks ALot!
Inderjeet Kaur Sr. Software Engg
ur welcome... Gurinder Singh
-
ur welcome... Gurinder Singh
do u have session expiry knowledge... i struct in same question of aman saroya.. (3-4 post below ur..)
-
I have a grid view which can have any number of records. I have a text box to search for card numbers. I highlight the rows with matching card numbers in RowDataBound event. Now i want to bring the Highlighted rows to top. I do not want to remove all other records. I want to show all records and want to bring highlighted records to top. I urgently need the solution for this query. Any help will be appreciated. Thanks in Advance! Inderjeet Kaur
Inderjeet Kaur Sr. Software Engg
Hi Its workign fine if i have to search for 1 field, If i have to search for 2 fields it fails. How can i handle it... Suppose, user enter a card number and wrong name corresponding to those card numbers. If use AND operator in my query, it will still return records. My gridview is using template, for null records. If the user is making wrong query, i want no records to returned... Can you help me with this.
Inderjeet Kaur Sr. Software Engg
modified on Thursday, August 20, 2009 1:10 AM