In the previous post I showed how you can create and bind a ListView using LINQ. Now, if you want to format a value in one of the columns, one way to go around this is using StringFormat. Here is a very good blog entry explaining this.
StringFormat however allows for mostly basic formatting. What if you want to do something more complicated?
As an example, and since I am from Cyprus, I wanted to format an Amount column to display as currency but with the Euro symbol.
This blog is dedicated to small tips and tricks I either figure out or I find on the net that solve (at least my) programming issues with .Net.
Showing posts with label GridView. Show all posts
Showing posts with label GridView. Show all posts
Monday, August 23, 2010
Friday, August 20, 2010
WPF ListView and LINQ
After dealing with traditional WinForms DataGridViews, when you are trying to display information, I find that ListView in WPF is much more easy to code.
Subscribe to:
Posts (Atom)