asp.net - Asp:BoundField how to force input width -


silly question...

code:

<asp:boundfield datafield="prevduration" headertext="prev."              sortexpression="prevduration" itemstyle-width="25">         </asp:boundfield> 

html output:

<td style="width:25px;"><input name="ctl00$maincontent$gridview1$ctl03$ctl02" type="text" value="1" size="5" title="prev."></td> 

so code specifies td width, how instead can specify input width?

ps. way size=5 comes out from?

use controlstyle-width="25px" property.

<asp:boundfield datafield="prevduration" headertext="prev." sortexpression="prevduration" controlstyle-width="25px"> </asp:boundfield> 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -