ItemStyle-VerticalAlign="Middle" not work in asp:GridView
Posted
by pablogrind
on Stack Overflow
See other posts from Stack Overflow
or by pablogrind
Published on 2010-03-27T20:29:28Z
Indexed on
2010/03/27
20:33 UTC
Read the original article
Hit count: 383
Why ItemStyle-VerticalAlign="Middle" not work in asp:GridView?, this is my code
<asp:GridView ID="GridView1" runat="server" RowStyle-VerticalAlign="Middle" >
<Columns>
<asp:TemplateField ItemStyle-VerticalAlign="Middle" HeaderText='<%$ Resources:Language, Admin_Employee_TimeTracker_GV_Code %>'>
<ItemTemplate>
<asp:TextBox id="txtReferenceCode" runat="server" text='<%# Bind("referenceCode")%>' MaxLength="100" Width="100px"></asp:TextBox>
</ItemTemplate>
<ItemStyle VerticalAlign="Middle" />
</asp:TemplateField>
© Stack Overflow or respective owner