I am having user group returning from wcf service and using view model binding it to xamgrid in view, Since grid is having auto generate column is true, grid column headers same as propertyname(without space).
I want to change the column header.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are couple of ways to do it. If you still want to do auto generate columns true then you can subscribe to AutoGeneratingColumn event in the grid and listen to each column and set the column header to the name you want. The other option not sure it will work in your case, is in the model you can decorate each member using component model annotation http://msdn.microsoft.com/en-us/library/cc490428(v=vs.95).aspx or Using DataAnnotations (DisplayColumn) in WCF RIA Services