
Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Hi Martin,
Thanks for your input. The exception does not happen anymore but now when I
load the a datagrid using the following
dsMachineParameters = new DataSet("MachineParameters");
mydatagrid = new DataGrid();
mydatagrid.DataSource = dsMachineParameters;
dataGridView1.Controls.Add(mydatagrid);
I am still allowed to change the value to something greater than 1000. This
is not what I expected?

Signature
Don
> > I tried the following:
> > <xs:element name="FeedRateMAX" type="xs:double">
[quoted text clipped - 11 lines]
> Well that is not what I suggested, drop the type="xs:double" from the
> xs:element.
Martin Honnen - 30 May 2008 17:42 GMT
> Thanks for your input. The exception does not happen anymore but now when I
> load the a datagrid using the following
[quoted text clipped - 6 lines]
> I am still allowed to change the value to something greater than 1000. This
> is not what I expected?
I think in terms of the W3C XML schema language you have the right type
definition now. I don't know however whether such restrictions in a
schema are enforced by DataSets or DataGridViews. I did a quick test
here and it indeed looks as if the DataSet does not enforce such
restrictions like minInclusive or maxInclusive. I am not sure how to
change that. You might want to ask in an ADO.NET group.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/