Software Development Network>> Smart Devicet>> Mobile Datagrid Format
The easiest way to do this is to add a calculated field to the table:
Assuming that the currency column is called cost:
tbl.Columns.Add("FormattedCost", typeof(string), "'$' + Convert(cost, 'System.String')");
Then bind your grid column to this calculated column. Another approach is described here:
http://www.alexfeinman.com/download.asp doc=GridDemo2.zip This one is most flexible as formatting is done on the fly in .net code.
Finally, in CF2.0 SP1 you can override cell painting
NETCF V2 SP1 has formatting support (as well as cell painting override).
http://blogs.msdn.com/netcfteam/archive/2006/04/25/583542.aspx
<Chagrined>
I forgot about formatting
Mobile Datagrid Format
Jouan
The easiest way to do this is to add a calculated field to the table:
Assuming that the currency column is called cost:
tbl.Columns.Add("FormattedCost", typeof(string), "'$' + Convert(cost, 'System.String')");
Then bind your grid column to this calculated column. Another approach is described here:
http://www.alexfeinman.com/download.asp doc=GridDemo2.zip This one is most flexible as formatting is done on the fly in .net code.
Finally, in CF2.0 SP1 you can override cell painting
Graham Hansen
NETCF V2 SP1 has formatting support (as well as cell painting override).
http://blogs.msdn.com/netcfteam/archive/2006/04/25/583542.aspx
Furby
<Chagrined>
I forgot about formatting
RajLakamana