dataGrid.Columns[0].CellStyle=

Jun 30, 2009 at 9:58 AM

 

I;m trying to set a style from code behind
These doesn't work:
dataGrid1.Columns[0].CellStyle = ((Style)FindResource("{StaticResource myCellStyle}"));
dataGrid1.Columns[0].CellStyle = ((Style)FindResource("myCellStyle"));
can it be done?