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
310
XamGrid XamNumericEditor Mask
posted

Hi, I am using a SL XamGrid with a TemplateColumn.

In the template column ItemTemplate is a XamNumericEditor.

I need to set the Mask of the XamNumericEditor so it can be different for each row of the grid.

I have databound the XamNumericEditor Mask property to a property that exists in each record of my data source.

It all works fine the first time the grid is loaded, however if the data is refreshed I get an exception along the lines of "the mask must be '{double:-i.f}' - which it is as it worked the first time.

I am wondering if this is because the same XamNumericEditor is used for all rows in the column and the mask can only be set once per column?

Maybe I could set the mask in the 'Loaded' event of the XamNumericEditor - if I do that how do I figure out which row of the grid I am in (inside the event handler) so I can go and get the correct mask?

Any help greatly appreciated.

Regards David.