0

this is the code:

(tianDataSet is the Dataset created using the designer) (roleBindingSource if the Binding Source created using the designer) tianDataSet.country is the table of countries.

 roleBindingSource.DataSource = tianDataSet.country;
            dataGridView1.DataSource = roleBindingSource;
            dataGridView1.Refresh();
            dataGridView1.Update();

It is refreshed but there is no rows there when it happened.

Can you help?

leppie
  • 115,091
  • 17
  • 196
  • 297
CRISHK Corporation
  • 2,948
  • 6
  • 37
  • 52

1 Answers1

0

This is the final solution for I want:

roleBindingSource.DataSource = roleTableAdapter.GetData();
dataGridView1.DataSource = roleBindingSource;
roleBindingSource.ResetBindings(false);
CRISHK Corporation
  • 2,948
  • 6
  • 37
  • 52