Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > datagridview search text
 

datagridview search text

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->

Dear all

I am using Visual Studio 2005

I have a datagridview with lot of rows and a txtSearch text box. Now I want if I click in datagridview column then enter text in the txtSearch then the matched row of that column will be highlighted in a color. i.e: colItemCode and row no 112 has a text like 16352. Then when I enter 16352 in the txtsearch then that row will be highlighted or selected by a color and it will come in front so that I can see. The rest of row also be there. How can I do this.

  • Moved byRoahn LuoMSFTMonday, August 24, 2009 2:00 AMa Windows Control issue (From:Visual Studio Debugger)
  •  
Nerurmon1  Sunday, August 23, 2009 8:22 AM
You may want to start here:

http://blogs.msdn.com/jfoscoding/archive/2005/11/16/493727.aspx

Hope this helps.

www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
  • Unmarked As Answer byNerurmon1 Tuesday, August 25, 2009 9:46 AM
  • Marked As Answer byNerurmon1 Tuesday, August 25, 2009 9:45 AM
  •  
DeborahK  Sunday, August 23, 2009 3:05 PM

You can use google to search for other answers

Custom Search

More Threads

• Import tab delimted text file into datagrid
• Help me with SQL
• Databinding help, multiple fields, C#
• How to populate Combox box in Datagrid view.
• How to add foreign key automatically
• InfoPath 2007 Rich Text Box Control: Not showing embedded images from webservice XHTML data
• .net questions
• Datagrid Help
• Control Default Value not pushed to DataSet
• Problem creating master/detail form w/customer/orders