The given value of type String from the data source cannot be converted to type nvarchar of the specified target column.
dtData.Columns.Add("RegionCode", typeof(string));
Quote:It may be caused by a too-short-column. If your ShortText column is defined as NVARCHAR(30) and you have a 40 character string, you may get that error. See here for example: http://forums.asp.net/p/1228890/2212376.aspx[^]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)