Thanks for the help.
I was running the program on My Computer for testing and the problems I
mentioned (big blue caption bar, readonly-ness) were gone when I actually
moved the code onto the PPC.
I fixed the formatting by just making another column that has the correctly
formatted time string time but still sorting by the actual DateTime column.
This does leave me with one minor problem:
When I do want the application to actually run on My Computer I need a good
way to keep the same codebase for both CE and regular computers but fix the
'big blue' and readonly problem. Any suggestions on how to manage CE project
libraries that need to be used on regular desktops with the full framework?
thanks,
[quoted text, click to view] "Darren Shaffer" wrote:
> Zack,
>
> The datagrid in Whidbey/CF2.0 is very similar to VS.Net 2003/CF 1.0. To
> answer your questions:
>
> 1. The datagrid is read-only by default in terms of cell editing (it's
> actually some work
> to provide in-place editing in a CF datagrid)
>
> 2. You can change the background color of the column headers and adjust the
> width of coulmns, but I do not know if you can (without some trickery)
> eliminate
> the column headers.
>
> 3. There is no concept of "types" of columns in a datagrid - if you create a
> data binding
> to some datasource containing a DateTime column, those DateTimes are
> effectively strings
> in the datagrid.
>
> -Darren
>
>
>
>
>
>
> "Zwyatt" <Zwyatt@discussions.microsoft.com> wrote in message
> news:9627DF23-831F-45D9-A134-C7614823C9EB@microsoft.com...
> > Hi,
> > I've got a Datagrid control in my PPC/WinCE project. Works fine.
> >
> > BUT...
> > - How do I set the datagrid to be ReadOnly so that people can't modify the
> > values in the cells?
> > - How do I change the datagrid so that there isn't a big blue thing (the
> > caption?) at the top of the control?
> > - How can I set the formatting of a column for a colum of DateTimes?
> >
> > I thought I had these figured out under CE 1.1 with some calls to some of
> > the properties of DataGrid and DataGridTableStyle classes...but I can't
> > seem
> > to find them anymore? I may be mis-referencing development under regular
> > windows...or just looking in the wrong place.
> >
> > pointers are appreciated -- thanks!
> >
> > - Zack
>
>