G Guest Apr 28, 2004 #1 Is there an easy way to format the columns of a datagrid progaammaticly? I can change the font using the font methed but can you set column size and color in a compact framework environment?
Is there an easy way to format the columns of a datagrid progaammaticly? I can change the font using the font methed but can you set column size and color in a compact framework environment?
W William Ryan eMVP Apr 28, 2004 #2 Ad a DataGridTableStyle and then you can add dataGridColumnStyles to it. http://msdn.microsoft.com/library/d...windowsformsdatagridcolumnstyleclasstopic.asp Borras said: Is there an easy way to format the columns of a datagrid progaammaticly? Click to expand... I can change the font using the font methed but can you set column size and color in a compact framework environment?
Ad a DataGridTableStyle and then you can add dataGridColumnStyles to it. http://msdn.microsoft.com/library/d...windowsformsdatagridcolumnstyleclasstopic.asp Borras said: Is there an easy way to format the columns of a datagrid progaammaticly? Click to expand... I can change the font using the font methed but can you set column size and color in a compact framework environment?