Andy Wij

Andy Wij

  • NA
  • 26
  • 35k

Using databinding between 2 form..

Dec 16 2011 9:58 AM
Hi all,

I've 2 form.. let say form 1 have datagridview that bind with datatable from dataset I create on designer mode. and form 2 have textbox to fill with data that bind with datatable from record user selected in form 1.

Example when user press button 'add' on form 1 it will show form 2 and the record will be on new row position and after user fill the textbox and press button 'ok'.. how I can do the binding between two form.

It makes me confuse when I look on form load have the code like this

private void Currency_Load(object sender, eventargs e)
{
        this.currencyTableAdapter.Fill(this.dataset.Currency)
}

this code automatically appears when I bind my datagridview with datatable when on designer mode.

Please guide me, cause I'm still new to C#.


Thanks.

Answers (8)