Ask a Question related to ASP.NET General, Design and Development.
-
Henrique Berenguel #1
How to show monetary values in a DataGrid
Hello folks. I have a DataGrid in a Web Form. I´d like to show numeric
columns in Money format US$ 10,000.98. However, when I fill the DataGrid
from a SqlCommand, it fill in the DataGrid like this: 1000098. How do I do
that?
Thanks
Henrique Berenguel Guest
-
can I show only unique values in a List?
I'm using XMLConnector, DataSet and list. Is there a way to show only unique values from a certain XML node from my XML? I have a "<phase>" node... -
can I show only unique values in a dataGrid?
I'm using XMLConnector, DataSet and list. Is there a way to show only unique values from a certain XML node from my XML? I have a "<phase>" node... -
Datagrid don't show all values from query
Hi, I have a Remote Object which execute a query from Contacts table, the table structure is id_contact, name, etc,,,,, When execute this... -
read row values from datagrid and populate in new datagrid values from connected
Hello, i am new in asp.net and i am having a question: I am having a datagrid_1 in which i am showing the context of PatientDetails table.... -
Show only sum values that exceed a certain total
I am trying to produce a report where I have a sum for a collective amount (number field) and that will print only when greater that a certain... -
Vaibhav #2
Re: How to show monetary values in a DataGrid
FormatNumber()
"Henrique Berenguel" <hberenguel@coimex.com.br> wrote in message
news:%23rh$4fAQDHA.704@tk2msftngp13.phx.gbl...> Hello folks. I have a DataGrid in a Web Form. I´d like to show numeric
> columns in Money format US$ 10,000.98. However, when I fill the DataGrid
> from a SqlCommand, it fill in the DataGrid like this: 1000098. How do I do
> that?
>
> Thanks
>
>
Vaibhav Guest
-
Henrique Berenguel #3
Re: How to show monetary values in a DataGrid
But do you have a sample to show to me?
"Vaibhav" <consultvaibhav@yahoo.com> escreveu na mensagem
news:OduVp6BQDHA.2676@TK2MSFTNGP10.phx.gbl...do> FormatNumber()
>
> "Henrique Berenguel" <hberenguel@coimex.com.br> wrote in message
> news:%23rh$4fAQDHA.704@tk2msftngp13.phx.gbl...> > Hello folks. I have a DataGrid in a Web Form. I´d like to show numeric
> > columns in Money format US$ 10,000.98. However, when I fill the DataGrid
> > from a SqlCommand, it fill in the DataGrid like this: 1000098. How do I>> > that?
> >
> > Thanks
> >
> >
>
Henrique Berenguel Guest
-
Naveen K Kohli #4
Re: How to show monetary values in a DataGrid
Specify the DataFormatString for your bound column..
<asp:BoundColumn HeaderText="MoneyMoney" DataField="Price" DataFormatString
= {0:c} />
--
Naveen K Kohli
[url]http://www.netomatix.com[/url]
"Henrique Berenguel" <hberenguel@coimex.com.br> wrote in message
news:%23rh$4fAQDHA.704@tk2msftngp13.phx.gbl...> Hello folks. I have a DataGrid in a Web Form. I´d like to show numeric
> columns in Money format US$ 10,000.98. However, when I fill the DataGrid
> from a SqlCommand, it fill in the DataGrid like this: 1000098. How do I do
> that?
>
> Thanks
>
>
Naveen K Kohli Guest
-
Henrique Berenguel #5
Re: How to show monetary values in a DataGrid
The problem is that I´m using the option:
'Create columns automatically at run time' in the Property Builder of my
DataGrid.
Then I don´t have bound columns in the html, that´s the problem...
Look the code:
<asp:datagrid id="DataGrid1" runat="server" BackColor="White"
Width="692px" BorderColor="#999999" PageSize="3" AllowPaging="True"
BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical"
Height="94px">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
<Columns><asp:ButtonColumn Text="Selecionar"
CommandName="Select"></asp:ButtonColumn></Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="Black" BackColor="#999999"
Mode="NumericPages"></PagerStyle>
</asp:datagrid>
Is there an other way to do that?
Or will I have to reprogram everything to recreate the browser with bounds
columns?
Thanks in advance
"Henrique Berenguel" <hberenguel@coimex.com.br> escreveu na mensagem
news:uzn7FICQDHA.1584@TK2MSFTNGP11.phx.gbl...DataGrid> But do you have a sample to show to me?
>
>
> "Vaibhav" <consultvaibhav@yahoo.com> escreveu na mensagem
> news:OduVp6BQDHA.2676@TK2MSFTNGP10.phx.gbl...> > FormatNumber()
> >
> > "Henrique Berenguel" <hberenguel@coimex.com.br> wrote in message
> > news:%23rh$4fAQDHA.704@tk2msftngp13.phx.gbl...> > > Hello folks. I have a DataGrid in a Web Form. I´d like to show numeric
> > > columns in Money format US$ 10,000.98. However, when I fill theI> > > from a SqlCommand, it fill in the DataGrid like this: 1000098. How do> do>> >> > > that?
> > >
> > > Thanks
> > >
> > >
> >
>
Henrique Berenguel Guest



Reply With Quote

