Buy Questpond's video subscriptions on
huge discount
.
Online: 2428
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
How Number should be right alligned in Gridview.
Posted by
Pcjoshi
under
C#
on 3/18/2013 |
Points: 10
| Views : 2163 | Status :
[Member]
| Replies : 9
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
hi, how can Number should be right aligned in grid view in c#.
In my grid their are many columns which contain number and text.
i want Number should be right aligned.
Please provide the solution.
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Jayakumars
on: 3/18/2013
[Member]
[MVP]
Bronze
|
Points: 25
0
hi
put this code working Fine
<asp:TemplateField HeaderText="Number" ItemStyle-HorizontalAlign ="Right">
mark as Resolved answer if it is useful.
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Pcjoshi
on: 3/18/2013
[Member]
Starter
|
Points: 25
0
hi,
I am talking about C# and not a particular column .
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Jayakumars
on: 3/18/2013
[Member]
[MVP]
Bronze
|
Points: 25
0
hi
post your Sample code.
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Pcjoshi
on: 3/18/2013
[Member]
Starter
|
Points: 25
0
hi,
check screen shot.
Download source file
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Jayakumars
on: 3/18/2013
[Member]
[MVP]
Bronze
|
Points: 25
0
hi
are u design this grid using Html table means
use this
<table>
<tr>
<td>Name</td>
<td>Empno</td>
</tr>
<tr>
<td style ="text-align:right;">AAA</td>
<td>123456.25</td>
</tr>
<tr>
<td>BB</td>
<td style ="text-align:right;">150.35</td>
</tr>
</table>
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Pcjoshi
on: 3/18/2013
[Member]
Starter
|
Points: 25
0
hi,
this comes through dataset in datatable.
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Jayakumars
on: 3/18/2013
[Member]
[MVP]
Bronze
|
Points: 25
0
hi
Pcjoshi
ok thats rights then after you bind Gridview or Html Table ? so i give that code. if u bind other control let me know
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Pcjoshi
on: 3/18/2013
[Member]
Starter
|
Points: 25
0
Hi,
I bind Gridview.
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Jayakumars
on: 3/18/2013
[Member]
[MVP]
Bronze
|
Points: 25
0
hi
pcjoshi
do u bind Gridview so put like this i previously post this code.
<asp:TemplateField HeaderText="Amount" ItemStyle-HorizontalAlign ="Right">
<ItemTemplate>
<asp:Label ID="lblamount" runat="server" Text='<%#Eval("Amount")%>'></asp:Label></ItemTemplate>
<ItemStyle Width ="30%" />
</asp:TemplateField>
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com
Pcjoshi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...