how to validate the ultrawebgrid cells not to accept special characters like (@#$%^&*:;><?..)
Hey rathinapriya... I am having the same problem, and somenoe mentioned to try this:
http://community.infragistics.com/forums/p/25143/92225.aspx#92225
hope that helps...
thanks one more question i had two columns one is primarykey field so i set that column Allow Update = no so it is in non editable mode now that primary key field is not identity field or autogenerated so i have to give value to that while Adding a new row but i cant give value for that column pls give me a solution....
Thanks a lot for replying...
Well, regular expressions is a tricky topic and I really am not sure if I can help a lot here, but I guess you can always use Google to formulate your expression.
I can also suggest one great too, Regulator, that helps you build regular expressions for you - you may find this useful.
http://tools.osherove.com/Default.aspx?tabid=185
hi ..
thank you for ur reply ..
now i find cellID but i cant find the regex for what i need...
Thanks in advance...
Hello Priya,
It really depends on where you want your validation to play. If you want the grid to not show certain data in read-only (default) mode, then you will need to filter the datasource first yourself (using SQL for example) and just then bind the grid.
If you are using defualt cell editors you can check out this:
http://forums.infragistics.com/forums/p/772/12836.aspx#12836
If you are using RowEditTemplate, you can check out the following forum thread
http://forums.infragistics.com/forums/p/10042/39078.aspx#39078
Finally, I also recommend the following great article on how to implement UltraWebGrid in production (full blown) - part of this deals exactly with validation and getCellById methods:
http://dotnetslackers.com/articles/aspnet/QuickGuideToImplementingTheNetAdvantageUltraWebGrid.aspx