|
Question : '0' is not a valid value for 'value'. 'value' should be between 'minimum' and 'maximum'.
|
|
I am using .Net Framework 1.1 WinForms DataGrid.
Everytime I refresh the DataGrid, I get the error "'0' is not a valid value for 'value'. 'value' should be between 'minimum' and 'maximum'." especially when the query result is empty. What does this mean and how can I prevent it? Is this a bug in .Net?
Here's my VB.Net code:
da.Fill(ds, "Monitor") dg.SetDataBinding(ds, "Monitor")
da is my DataAdapter. ds is a global variable of type DataSet. dg is my DataGrid. I initialize and bind ds to dg on Form load (using SetDataBinding()). The code above is how I refresh dg.
What causes the error "'0' is not a valid value for 'value'. 'value' should be between 'minimum' and 'maximum'." and is there a way to prevent it from happening?
On the side: Is there a better way of refreshing my DataGrid without having to call SetDataBinding() again?
Thank you in advance.
|
|
Answer : '0' is not a valid value for 'value'. 'value' should be between 'minimum' and 'maximum'.
|
|
Closed, 300 points refunded. ee_ai_construct Community Support Moderator (re-order part number xm34)
|
|
|
|