Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program crashes after setting Grid.DataSource
Message
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Program crashes after setting Grid.DataSource
Miscellaneous
Thread ID:
00910272
Message ID:
00910272
Views:
63
If I set myDataGrid.DataSource=myDataSet; in the click event of a button, everything works great. If I run the exact same line of code in an event handler method, the program becomes unstable, hangs or crashes. I get the same effect if I set myDataGrid.DataSource=null;

The event handler handles an event raised by inserting a smart card. If I put a MessageBox.Show("It Works") line in the event handler (or anything else for that matter), it seems to work fine. It's only in trying to set the DataSource of a grid that I see this behavior. Any ideas?

I'm using the mmDataGrid control and a dataset returned from a biz object .GetCurrentDataSet() call (or simply null).

Thanks in advance
Mike
Next
Reply
Map
View

Click here to load this message in the networking platform