c# - How to make the gridcolumn have some text in it -
i using gridcontrol , has 4 columns. coded in such way validation occurs when column field empty. used string.empty
.
my problem occurs when user enters whitespace in column , saves. "empty" text gets saved , don't want happen. need column have text before can saved.
how can prevent empty strings being saved?
instead of string.empty can first trim() , apply string.empty.....or can use regex(regular expressions) validations.... check these links :- 1st link , 2nd link
Comments
Post a Comment