G
Guest
Hi
I'm creating Datagrids on the fly and need to be able to set header and item styles. So I tried this
DataGrid selectedsGrid = new DataGrid()
TableItemStyle hStyle = new TableItemStyle()
hStyle.BackColor = Color.FromArgb(220, 214, 188)
selectedsGrid.HeaderStyle= hStyle
But it seems that hStyle is read only... What is the proper way to do this
It seems that working with dynamic datagrids is not well supported in .net. or am I just missing something
Thanks for your help
I'm creating Datagrids on the fly and need to be able to set header and item styles. So I tried this
DataGrid selectedsGrid = new DataGrid()
TableItemStyle hStyle = new TableItemStyle()
hStyle.BackColor = Color.FromArgb(220, 214, 188)
selectedsGrid.HeaderStyle= hStyle
But it seems that hStyle is read only... What is the proper way to do this
It seems that working with dynamic datagrids is not well supported in .net. or am I just missing something
Thanks for your help