v-lliu
Thu Jan 25 21:51:49 CST 2007
Hi Jakob,
I performed a test based on your description but could not reproduce your
problem.
When the DataSource or DataMember property of a BindingSource component is
changed, and the BindingSource component has been set as the data source of
a DataGridView, data binding will update the data in the DataGridView
automatically and we needn't set the DataSource property of the
DataGridView control once again.
Note that if you change the DataSource property of the BindingSource
component, to get the data displayed correctly in the DataGridView control,
you should ensure that the new dataset instance has a DataTable with the
same name and schema as the previous dataset instance does.
Beside the above possibility, I think other possible reasons of your
problem may be that the DataSource property of your DataGridView control
has been changed somewhere else or the the BindingSource component whose
DataSource property you changed is not the one that the DataGridView
control is bound to.
If the problem is not still solved, you may send me your sample project
that could just reproduce the problem. To get my actual email address,
remove 'online' from my displayed email address.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.