By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,855 Members | 1,988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,855 IT Pros & Developers. It's quick & easy.

Wierd problem: set DataGird's DataSource at runtime

P: n/a
Hi,
I found a wierd problem in DataGrid.
If I set DataGrid's DataSource to empDataSet1 at designtime,
then I can never change its DataSource at runtime, e.g., in the
Button1_Click event procedure:

DataGrid1.DataSource = dataView1;
DataGrid1.DataBind();

But if I clear DataGrid's DataSource property at designtime,
then I can change its DataSource to any object at runtime.

It's really wierd, isn't?

Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.