Datagrid Headers and Empty Source...

Sep 9, 2010 at 7:19 AM
Edited Sep 9, 2010 at 7:19 AM

Hi,

How could I make the Datagrid display the headers in case there's no row to display?

My Datagrid is "completely" read-only with:

"AutoGenerateColumns ="True"
"CanUserAddRows="False"
"CanUserDeleteRows="False"
"CanUserResizeRows="False"
"IsReadOnly"="True"

If there's no row, then the headers aren't displayed, if I add even an empty row, then the headers are shown!

Until now, I couldn't find any workaround/solution for that!

Thx all

 

Fred