Im wrighing c# applications. In 'Inventary' Form is datagridview which gets data from sql table 'Products' i have one form 'AddNew' which is adding some data with following code:
this code works fine but i want to make following : when user click on datagridviews cell double it must open this form AddNew already texbox filled which edits data . How can i catch AddNew`s btn ok click from Form Inventary. please advice me something how can i use this code on addnew`s btnOk from Inventary form :
Know the answer? Post it. Somebody with the same question will find it here.
Sam HobbsRank #108 · 20.5K reputationPosted Oct 27, 2010, 6:28 PM EDT
0
A DataGridView does not have an AddNew button so the AddNew button is not part of the DataGridView control and I don't know what your AddNew button is and if no one else knows what it is then no one can help you. I don't know if the DataGridView control is bound to the data or not; if you don't know if it is then it probably is not but if it is then the AddNew button might be part of the BindingNavigator control. Where is the AddNew button? Did you create it or is it part of a navigation bar?
Sam HobbsRank #108 · 20.5K reputationPosted Oct 27, 2010, 6:28 PM EDT