General information
Category:
The Mere Mortals .NET Framework
Title:
Program crashes after setting Grid.DataSource
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only