Updating one form through another forms
-
hello... i am developing a C# window based application.i have a form(view Item) that contain a datagridview and a button. datagridview shows the item information and at the button click a new form(Add Item) opened by which user can add the item information. All i need to do is after filling the item information when we click the save button the datagridview must be updated. How can i do this.
-
hello... i am developing a C# window based application.i have a form(view Item) that contain a datagridview and a button. datagridview shows the item information and at the button click a new form(Add Item) opened by which user can add the item information. All i need to do is after filling the item information when we click the save button the datagridview must be updated. How can i do this.
Bind daatagridview with select command after you insret new item.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
-
Bind daatagridview with select command after you insret new item.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
-
Its not Like that......... datagridview is on a form named ViewItem and we want to update this datgridview through a button that is on another form name AddItem...
In dataGeidView set property
Modifiers
totrue
and in form AddItem bind datagridview which is in form ViewItem.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
-
hello... i am developing a C# window based application.i have a form(view Item) that contain a datagridview and a button. datagridview shows the item information and at the button click a new form(Add Item) opened by which user can add the item information. All i need to do is after filling the item information when we click the save button the datagridview must be updated. How can i do this.
Use delegates to cause events to happen between forms.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
In dataGeidView set property
Modifiers
totrue
and in form AddItem bind datagridview which is in form ViewItem.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
-
datagridview having property Public,Private,internal,internalProcted one thing that can be matters is The viewitem form is a MDIChild Form. but the form Additem Is not a MDI form..ok
merahul wrote:
datagridview having property Public,Private,internal,internalProcted
You are right,sorry it was my mistake to set Modifiers to true,I wanted write
Public
but nottrue
.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
-
Use delegates to cause events to happen between forms.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
merahul wrote:
datagridview having property Public,Private,internal,internalProcted
You are right,sorry it was my mistake to set Modifiers to true,I wanted write
Public
but nottrue
.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
-
check this link[^] also check this google result[^]
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
-
I like to give just the keywords. Anyone with any chance of ever becoming a programmer, should be able to type 'C# delegate' into google and find tons of articles to read.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.