Trim Character from ComboBox text with source as Datatable?
Posted on 2006-05-20
Im using a datatable as the source of my combobox. Code looks like this:
.DisplayMember = "Account #"
.ValueMember = "ID"
.DataSource = MyDataTable
I want to trim the first character from all the "Account #"s. My account numbers look like this S0000000001 , I need to get rid of the S. I have tried variations of Trim and Substring(1, 10) on both the combobox and the datatable with no luck. How can I do this ? Thanks for any help you can provide!