align items in formview

S

Steve Richter

can I align the items in the formview so that all the labels have the
same width and all the textboxes are aligned one under the other?
( as if the formview was a table with two columns )

thanks,

-Steve
 
P

Patrice

What are you using for now to present those data ? This is still up to you
to define the inner html you'll have in the form view...
 
S

Steve Richter

What are you using for now to present those data ? This is still up to you
to define the inner html you'll have in the form view...

I see, I can manually code the form view items within a <table>.
thanks.

<ItemTemplate>

<table>
<tr>
<td>
DefinedTableId:
</td>
<td>
<asp:Label ID="DefinedTableIdLabel" runat="server"
Text='<%# Eval("DefinedTableId") %>'></asp:Label>
</td>
</tr>
<tr>
<td>
TableName:
</td>
<td>
<asp:Label ID="TableNameLabel" runat="server"
Text='<%# Bind("TableName") %>'></asp:Label>
</td>
</tr>
<tr>
<td>
DatabaseName:
</td>
<td>
<asp:Label ID="DatabaseNameLabel" runat="server"
Text='<%# Bind("DatabaseName") %>'></asp:Label>
</td>
</tr>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

FormView 3
FormView insert with UpdatePanel 0
FormView 2
detailview or formview 1
displaying session value in formview? 1
FormView 0
FormView 0
Can I embedd FileUpload in a FormView? 2

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top