Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to learn .net please someone help me. i have form1 with textbox,type some text that search from another forms datagridview & that datagridview data shows in form1 textbox,the search/sort/filtter is alphabetical typeing process using c#.
Posted
Updated 5-Oct-11 22:55pm
v2

1 solution

in the property tab of the another form2 you must change the modifier of the datagridview to public, than you must add an object of type form2 to form1:

or maybe from the main class you must add the from2 object an use it
C#
(form2 f = new  form() use  f.show() and f.hide() or anything)

class form1:form //....
{
form2 F = new  form2();
//...

"in the event" textbox.text_changed(...)
{
...use you search code using F.datagridview2. ...( datagridview2 must be public...)

}


}
 
Share this answer
 
v2

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