troubleshooting Question

GridView - Text alignment in Edit mode?

Avatar of Zoplax
Zoplax asked on
.NET ProgrammingASP.NETASP
3 Comments1 Solution1027 ViewsLast Modified:
I have a GridView with TemplateField objects in which I'm setting the ItemStyle-HorizontalAlign so that the text in the cell appears right-justified.

Is it possible to make it so that the text in my GridView cell is right-justified in Edit mode, and if so how can I set this programmatically?  
<asp:TemplateField HeaderText="Rate/Adder" ControlStyle-Width="100" ItemStyle-HorizontalAlign="Right">
     <ItemTemplate>
          <asp:TextBox id="txtBlendAdderValue" Text='<%# Bind("BlendAdderValue") %>' AutoPostBack="true" OnTextChanged="txtBlendAdderValue_TextChanged" Columns="40" MaxLength="255" CssClass="form" runat="server" />                                                       
     </ItemTemplate>
</asp:TemplateField>
ASKER CERTIFIED SOLUTION
CtrlAltDl

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros