I'm using VS 2005 to create a Windows Mobile program in C#. I need to display data in a grid. The only grid control I could find for Windows Mobile is DataGrid, so I placed one on my form. I now need to change the width of some columns and the font & color of some cells. How do I do this?
Also is there is a better control to use for Windows Mobile?
thanks
John.
Best Answer
I am not sure you can change the font for individual columns or cells. The grid has a property that lets you set the font and size. To set the width of columns, I use this method (it adds a table style to the grid):
This method is also helpful when you want to hide a column that is in the bound DataTable, but you don't want to show (then you set width = 0).