[Mono-osx] How to assign datasource for DataGridView multiple times
d_v
dan.vandermolen at figpsoft.com
Mon Jan 5 12:58:02 EST 2009
Hi,
I can not seem to set a datasource on a DataGridView the 2nd time on a Mac.
I can set it and view the grid fine the first time however.
I am using the latest Mono 2.1 for OS X. It works fine in DotNet 2.0 and
Win XP.
Error is: "unhandled exception: Index is less than 0 or more than or equal
to the list count. Parameter name: index 1." And then the form disappears
and closes.
My code to set the DataGridView:
--------------------------------
DataSet ds = new DataSet();
DataTable dt = new DataTable();
ds = MyWebService.GetDataset(InitialClientLogin, sSQL, ParamValues, out
sMsg).Copy();
dt = ds.Tables[0]; // Setup table. Choose the first table, since that is
only one returned.
MyDataGridView.DataSource = dt; // Crashes in Mono 2.0 on 2nd assignment
here.
--
View this message in context: http://www.nabble.com/How-to-assign-datasource-for-DataGridView-multiple-times-tp21295898p21295898.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx
mailing list