Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Format Databindings for auto generated columns

$
0
0

Hi,

I am binding a DataTable to a WPF DataGrid (ItemSource) and columns will be generated automatically based on the DataTable.

However, I need to format some columns lengths once they are gone beyond 100.

I have used IValueConverter's Convert method to format of databinding, but I had to change the datasource as columns are auto generated.

Is there a way to do this without changing the datasource. In fact, I need to do the formatting only when displaying without committing those formatting into DataSource (DataTable)

Thanks, Regards,

Dushantha



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>