I appear to have found a bug in the mono stack? Or was it a design
implementation choice?
Here is the scenario... I pull data from a database, then load up a Dataset
then find it to a Datagridview. Then I substitute textual values inside of
that grid based on the numeric values in the grid. I do this "after" I have
already bound the DataSet table to the DataGridView.
On the Microsoft side (Vista) this error does not occur... or no lock up. The
DataTable "object" the datagridview is bound to simply updates to the
underlying table data changed on the fly. When you run the commented lines of
code the application on Mono will lock up and just stop execution. I get no
exception thrown or any clue as to what is going on. The app just locks, I
have to manually kill the process. I changed the code just to update the grid
cell directly and it works fine on both platforms for display purposes.
// Commented code that locks on linux
//BoundDataSet.Tables[0].Rows[i][DataGridViewColumnIndexToConvert] =
// DisplayValue;
// Uncommented code below runs on both mono and the Microsoft stack no problems
as expected
oDataGridView.Rows[i].Cells[DataGridViewColumnIndexToConvert].Value =
DisplayValue;
Version information for reproduction
OpenSuse 11.1 32-bit Linux, Mono 2.2 (freshly released and installed)
Microsoft Windows Vista Home Premium edition 32-bit, .NET 2.0 framework
compilation for all libs
Algorithmic scenario
1 - Pull db data
2 - Bind to DataGridView
3 - Update numeric values in the underlying bound DataTable bound to the Grid
(originally via the DataTable, now just the Grid Display Cell value)
Thanks,
-A-
_______________________________________________
Mono-winforms-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list