PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework datagrid

Reply

datagrid

 
Thread Tools Rate Thread
Old 09-11-2004, 02:09 PM   #1
Page Up - XP
Guest
 
Posts: n/a
Default datagrid


Hello,

How can we format data of datagrid for always display 2 decimal ?

Regards.


  Reply With Quote
Old 09-11-2004, 04:11 PM   #2
Earl
Guest
 
Posts: n/a
Default Re: datagrid

You have to design your own tablestyle, then set the properties for the
textboxcolumn. The property you want to change is Format. Look at
DataGridTextBoxColumn class in the Help.

"Page Up - XP" <Nospam~xpacotte@pageup.fr> wrote in message
news:%23WaFAXmxEHA.1264@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> How can we format data of datagrid for always display 2 decimal ?
>
> Regards.
>



  Reply With Quote
Old 09-11-2004, 05:37 PM   #3
Alex Feinman [MVP]
Guest
 
Posts: n/a
Default Re: datagrid

Not on CF. There is no reliable way to achieve this on CF platform other
then by adding a column to the existing table and filling its contents
manually using float.ToString()

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Earl" <brikshoe@newsgroups.nospam> wrote in message
news:ehr7SbnxEHA.2996@TK2MSFTNGP10.phx.gbl...
> You have to design your own tablestyle, then set the properties for the
> textboxcolumn. The property you want to change is Format. Look at
> DataGridTextBoxColumn class in the Help.
>
> "Page Up - XP" <Nospam~xpacotte@pageup.fr> wrote in message
> news:%23WaFAXmxEHA.1264@TK2MSFTNGP12.phx.gbl...
>> Hello,
>>
>> How can we format data of datagrid for always display 2 decimal ?
>>
>> Regards.
>>

>
>



  Reply With Quote
Old 10-12-2004, 12:55 PM   #4
=?Utf-8?B?QWRuYW4=?=
Guest
 
Posts: n/a
Default Re: datagrid

Dear Alex i have tried one of your sample example named GridDemo2, but i use
it in my project it is showing a cell size X in all cells of the column which
i have specified in

Dim bnd As Binder = Binder.BindToDataGrid(grdTeamMembers, 0, "{0}")

plz help me

"Alex Feinman [MVP]" wrote:

> Not on CF. There is no reliable way to achieve this on CF platform other
> then by adding a column to the existing table and filling its contents
> manually using float.ToString()
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Earl" <brikshoe@newsgroups.nospam> wrote in message
> news:ehr7SbnxEHA.2996@TK2MSFTNGP10.phx.gbl...
> > You have to design your own tablestyle, then set the properties for the
> > textboxcolumn. The property you want to change is Format. Look at
> > DataGridTextBoxColumn class in the Help.
> >
> > "Page Up - XP" <Nospam~xpacotte@pageup.fr> wrote in message
> > news:%23WaFAXmxEHA.1264@TK2MSFTNGP12.phx.gbl...
> >> Hello,
> >>
> >> How can we format data of datagrid for always display 2 decimal ?
> >>
> >> Regards.
> >>

> >
> >

>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off