>I am using a Typed dataset and write changes to my data through my business logic.
>
>I pass data via parameters into my update routines and write to the rows like this:
>
>MyDataTable o1 = new MyDataTable();
>MyRow o2 = o1.NewMyRow();
>o2.firstname = x
>o2.lastname = y
>
>
>This works great, but if the contents of X or Y are greater in length than the fields o2.firstname or o2.lastname, I will get an error. What is the best way of trapping or preventing this type of error?
>
>Thanks,
>
>Jerry
How do you define the length of a string in a Typed DataSet?