SSN DataFormatString in Web grid not working

1 reply. Last post: August 20, 2012 11:32 PM by Hans Kristian
Tags :
naveen gowdaMember

i do have a user grid of which one of the columns show up the ssn numbers of the users in the grid. i want to achieve some sort of formating similar to currency but for the ssn numbers.


Lets assume i just have a grid with only 2 columns of which one of them shows up the name and other shows up the ssn

i tried the following with no luck. 

-

<ISWebGrid:WebGridColumn Caption="SSN" DataMember="ssn" Name="cur" 

                        Width="150px" DataFormatString="000-00-0000">

                    </ISWebGrid:WebGridColumn>

-


Can someone explain is this something achievable, if yes whats the right way of getting this work. Any help is really appreciated.

All Replies

Hello,

I’m sorry for the late response.

I made a sample I bind the WebGrid to access data source control (Nortwind database and Shippers table).
I also add one row to Shippers table (ShippersData.png).
However, the format string works fine on my end (ShippersWebGrid.png).

Please have a review on my sample and let me know if there are the configurations that I missed.
Or could you provide me more detail about your current scenario? So I can help you to resolve your issue.

Regards,
Hans.
All times are GMT -5. The time now is 2:23 PM.
Previous Next