Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I am encountering an issue where Binding to a RadioButtonList, the casing for the items added is changing from what it originally was set to. E.g., 'BIG Boss' becomes 'Big Boss'.

How can I prevent this when binding and maintain the text casing that it originally had?

Below is the code I am using:

C#
List<sometype> radioListSource = new List<sometype>();
            foreach (SomeType ST in SomeTypes.OrderBy(t => t.SomeTypeName))
            {
                if (!ST.SomeTypeName.Contains("XXX"))
                    radioListSource.Add(ST); 
            }
            UserTypes.DataSource = radioListSource;
            UserTypes.DataBind();
            UserTypes.Visible = true;
Posted
Updated 28-Aug-15 3:16am
v2
Comments
Sinisa Hajnal 31-Aug-15 2:24am    
Never heard of such behaviour. Read the documentation, see if there is some spell checker component involved. Good luck

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900