Using C # .Net 4.5, Visual Studio 2012 Ulti, WPF.
I have old win-forms code that I would like to make in this new WPF application.
following code:
DataGridViewImageCell pNew = new DataGridViewImageCell();
ParetoGrid.Columns.Add(new DataGridViewImageColumn() { CellTemplate = pNew, FillWeight = 1, HeaderText = "pNew", Name = "pNew", Width = 30 });
ParetoGrid.Columns["pNew"].DisplayIndex = 18;
3 lines of code to add a column that can handle images. In WPF, I saw it a little differently. Do I need to add an "image column"? or do WPF columns support images? or is there another 3-linear solution that is just a different syntax?
Thanks for helping the guys
source
share