I have a SQL CE database, which is beyond my control, that has fields in the format of ., complete with a period in the column name. The columns will always be different, so I cannot have a strong-typed data field. I've been tasked with displaying dynamic table data into a DataGrid.
Normally, this would be easy -- auto-generate the columns and everything is cool. Easy example.
However, I'm not allowed to do this, since the '.' character in the column names nukes the binding.
Right now, I'm trying to add a layer of translation to the dataset (probably will have to maintain a dictionary with translations of . to _).
My question is -- is there a better way? I recall something a while back about being able to have a SourceColumnName in a DataTable, but I didn't see it. There's a "Caption," but I cannot bind to that...
Any thoughts?