General information
Category:
The Mere Mortals .NET Framework
Title:
Encountering MaxLength error when updating Grid
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only