Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encountering MaxLength error when updating Grid
Message
From
08/08/2003 16:05:34
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Encountering MaxLength error when updating Grid
Miscellaneous
Thread ID:
00818418
Message ID:
00818418
Views:
69
I'm an MM.NET user, Using C# and ASP.NET. I'm programmatically building grids. I'm using the EditCommandColumn. When I "Edit" a text field of a record by adding characters, and the [Insert] key is off, the record is saved correctly when I "Update"

However, if the [Insert]key was on when I added characters, the string becomes longer than the MaxLength and it sets off the MaxLength constraint when I "Update".

Should I just Trim each text field in the datarow before or within SaveDataSet(), or does anyone have a simpler solution? Of course I could hope that no one ever has the [Insert] key on:)

Tim G
Reply
Map
View

Click here to load this message in the networking platform