Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Robert Batt #1
formatting the data in a datagrid
Hello,
I wish to format the data in one of the columns of a
datagrid so that it does not display more than 3 decimal
places. I have a datagrid call dgjobs and I have the
following code.
nb cm is a currency manager
Dim i As Integer
ts = New DataGridTableStyle(cm)
Me.dgjobs.TableStyles.Add(ts)
ts.GridColumnStyles(11).Width = 50
ts.GridColumnStyles(11).HeaderText = "B/C"
ts.GridColumnStyles(11).NullText = ""
How do I restrict the data in this column 11 to show only
3 decimal places
thanx in advance
Robert
Robert Batt Guest
-
Datagrid Formatting
I am trying to find out if it is possible to format a datagrid to display results in teh following manner; Job: 5453 South Ridge Lane ... -
Datagrid cell data formatting
Hi, I have just finished working on populating a datagrid from an xml file. I am creating a client list with category headers. What I am trying to... -
Datagrid cell data formatting - 2
Ok, I have hit a brick wall here. I am simply trying to set the text in particular cells in particular rows to bold. Actually, I have been able to... -
Formatting a datagrid
Hi, I am working on my first web app that uses a datagrid. I can't seem to find good examples of formatting the grid the way you can in a Windows... -
datagrid codebehind formatting
What if columns are not boundColumns? "Teemu Keiski" <joteke@aspalliance.com> escribió en el mensaje news:eQZRrOYDEHA.1604@TK2MSFTNGP11.phx.gbl... -
Nicole Calinoiu #2
Re: formatting the data in a datagrid
Robert,
Try using the Format property of the column style. e.g.:
ts.GridColumnStyles(11).Format = "F3"
HTH,
Nicole
"Robert Batt" <robertxxxx@yahoo.com> wrote in message
news:22be701c38be6$1cf47e70$a601280a@phx.gbl...> Hello,
> I wish to format the data in one of the columns of a
> datagrid so that it does not display more than 3 decimal
> places. I have a datagrid call dgjobs and I have the
> following code.
>
> nb cm is a currency manager
> Dim i As Integer
>
>
> ts = New DataGridTableStyle(cm)
>
> Me.dgjobs.TableStyles.Add(ts)
>
> ts.GridColumnStyles(11).Width = 50
> ts.GridColumnStyles(11).HeaderText = "B/C"
> ts.GridColumnStyles(11).NullText = ""
>
> How do I restrict the data in this column 11 to show only
> 3 decimal places
>
> thanx in advance
>
> Robert
Nicole Calinoiu Guest



Reply With Quote

