wpf - How to show Column Header of empty collection -


how show column headers empty collection has properties column. properties of collection known in run time. datagrid's autogeneratecolumns set true.

update:

it bug .net framework 4.0. when check sp1 of vs2010 fixed.

how handle this?

the best way in opinion test datasource , if empty add null data item give headers, set row[0].isvisible = false hide row. need undo when data has rows


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -