>
>Specified argument was out of the range of valid values. Parameter name: value
>
Which line does this fail on?
>The weird thing is that I *always* reload the data the same way. So if the data was changed should have absolutely no effect on the databinding. The method does this:
>
Strange. It kind of sounds like you're attempting to retrieve the value you just deleted at some point. But, if you're refreshing the data before binding, that shouldn't happen, should it? Could something be firing in a different order than expected?
Could it be weird data?
>
>private void btnAdd_Click(object sender, System.EventArgs e)
>{
> int SortOrder = 0;
> try
> {
> Int32.Parse(this.txtSortOrder.Text);
>
This probably has nothing to do with your problem, but shouldn't you be assigning the result of the above line to SortOrder?
eg.
{
SortOrder = Int32.Parse(this.txtSortOrder.Text);
}