[2005] small problem - binding and new row
I have this little problem: I have drag table from Data Source to form and delete navigator (I will use this form ONLY for adding new records) so I have binded text boxes. Now problem is how to 'tell' on form_load to prepare text boxes (like when I press plus [+] sign in navigator for new record) to enter new record. Example: I have manualy add one record to db in server explorer and that record is shown in text boxes and I can edit this and save. What command triger entering new row?
Thanks
Re: [2005] small problem - binding and new row
nobody know how to get this one working?!?
My work i on hold and I'm so close to the end...
Just wanna know the code that is behind 'plus' sign in BindingNavigator...
Re: [2005] small problem - binding and new row
The BindingNavigator is simply a UI for a BindingSource. When you press the + button on a BindingNavigator all that happens is it invokes the AddNew method of the BindingSource. If you've deleted the BindingNavigator then you simply have to call the AddNew method of the BindingSource yourself. I suggest that you immediately consult the MSDN library and read about the BindingSource class and its members.
Re: [2005] small problem - binding and new row
That I needed to hear. I get it most of all but for beginer this is so much information (in VB6 it was easyest but more limited i think) and need to code it few times to get everything in place in my head. Maybe I'm little 'slow' but can helped.