I want to add some items to a listview that is a gridview.
I want to do it through code without implementing the binding option, Simply adding values to set of cells of some sort.
I know it’s not the WPF-way but I need this done urgently and I can’t seem to find the answer I’m looking for.
I looked at multibind, converters and regular binding but it just won’t give me the answer I need for now.
Is it even possible?
If so how can I do it?
Can you use a
DataGridinstead of aListView? Then you can setAutoGenerateColumnsto true (is true by default even).Then in the code behind do something like this:
or shorter: