align items in formview

  • Thread starter Thread starter Steve Richter
  • Start date Start date
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
 
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...
 
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
displaying session value in formview? 1
what to use for display 3
adding a table to formview 3
Get Data value in FormView 5
Setting defaults on FormView insert 1
formview edit issue 12
FormView Buttons 1

Back
Top