Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
XamGrid Numeric text column
posted

Hi,

I'm using 2010.2 XamGrid, I've "Quantity Requested" column of type "TextColumn", is there any way to make that column to accept only positive numeric values, right now I can enter characters, -ve symbols etc.

Thanks,

kthatik

 

Parents
No Data
Reply
  • 5595
    posted

    Hi,

    The XamGrid supports various validation mechanisms for it's editors, so for example if in the setter of you data item's property that corresponds to Quantity Requested throws an exception on setting negative value, the XamGrid will ensure validation error message is displayed in the editor and it cannot exit edit mode when confirming.

    Your data item can also implement IDataErrorInfo and INotifyDataErrorInfo.

    See this page from the help for more information.

     

     

    HTH,

Children
No Data