PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
datagrid
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
datagrid
![]() |
datagrid |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello,
How can we format data of datagrid for always display 2 decimal ? Regards. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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. > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. >> > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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. > >> > > > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

