Hi,
I'm using XamGrid 10.3, I've "QuantityRequested" column in my grid, I want to restrict user from entrering non-numeric characters, and -ve numbers, right now when user enters non-numeric characters and tab- out , then it is showing error message, but I want to restrict at the time of key-down itself, is there any way?
<Grids:TextColumn Key="QuantityRequested" HeaderText="Qty Requested" Width="SizeToHeader" FormatString="{}{0:N0}" HeaderTextHorizontalAlignment="Right" HorizontalContentAlignment="Right" dg:PersistenceManager.Settings="{StaticResource ColumnSettings}" dg:PersistenceManager.PersistenceGroup="{StaticResource SETTINGS}"/>
thanks,
Kthatik1
The TextColumn is going to use a TextBox as it's editor.
You would probably want to use a template Column and set up the EditorTemplate to use the NumericEditor control and set it's mask to allow positive only input.
Thanks Darrell,
do you have any sample code/link on this topic pls?
regards,
kthatik
Here's a help topic that addresses creating an editable TemplateColumn:
http://help.infragistics.com/NetAdvantage/Silverlight/2010.3/CLR4.0/?page=SL_xamGrid_Editing_Data_in_a_Template_Column.html
Hope this helps,
-SteveZ