2
Answers

Hhow to find the records from datagridview in c# u

Photo of sreeni vashan

sreeni vashan

10y
550
1
Dear Experts

How to find the Records into datagridview using from Textbox in windows application C#. Back End SQL server2005.

I am having 5 fields(Date,Name,Address,etc..) in database. All that fields are binding with data grid in Form1 and also one text box. when i am load the Form1 all fields are displaying in datagrid view. everything going good so far.
Now, I want type the some text into textbox( private void txtdate_TextChanged(object sender, EventArgs e) ) like type date (ex:05-05-2014), the date will be highlighting in Data Grid view where every it has placed.

Thanks in Advance

Sreeni

Answers (2)

0
Photo of John
NA 8 0 18y
Ok, how does this translate to the RTB control?

With properties such as Font, ForeColer, BackColor etc. It's simply a matter of selecting the text you want (best done via REGEX) then changing the back and forecolors.

So I think your question is how do I filter incoming ASCII data?  Use REGEX
How do I apply the formatting to the data? Use the RTB.properties and methods.
0
Photo of John
NA 8 0 18y

In the font world there are two types of fonts proportional and non-proportional.  Try using Courier New, it is a non-proportional font.

Your other issues, that of knowing the differences between RTF and regular text files is summed up with this statement: "They are both standards-based ways to present data to the end user."  

Here's the RTF standard.

http://www.microsoft.com/downloads/details.aspx?FamilyID=e5b8ebc2-6ad6-49f0-8c90-e4f763e3f04f&DisplayLang=en 

A Rich Text Box supports this standard.

TextBox is a more simple "standard" that has much less overhead.  I don't know the standard for Textbox support but feel it must be pretty simply  ASCII characters with very simple font control.