Link to home
Start Free TrialLog in
Avatar of brgdotnet
brgdotnetFlag for United States of America

asked on

How to put a line seperator between two <asp:BoundField DataField> controls.

Hello, I have a DetailsView control on one line, and then immediately followed by another line that has a save and cancel button. These rows are too close together and I need an empty line
so that there is a space between the data bound field and my button control. Can someone tell me how to but some type of spacer before this line of code:
             <asp:CommandField InsertText="Save" ShowEditButton="True" ButtonType="Button"  
                ShowInsertButton="True" />

The code snippet below shows this code again with the other code
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
         DataKeyNames="TempUserID" DataSourceID="SqlDataSource1" 
        DefaultMode="Insert" Height="50px" Width="333px" GridLines="None">
        <Fields>
            <asp:BoundField DataField="TempUserID" HeaderText="TempUserID" 
                InsertVisible="False" ReadOnly="True" SortExpression="TempUserID" />
            <asp:BoundField DataField="UserFirstName" HeaderText="First Name" 
                SortExpression="UserFirstName" />
            <asp:BoundField DataField="UserLastName" HeaderText="Last Name" 
                SortExpression="UserLastName" />
            <asp:BoundField DataField="userEmail" HeaderText="Email" 
                SortExpression="userEmail" />
             <asp:CommandField InsertText="Save" ShowEditButton="True" ButtonType="Button"  
                ShowInsertButton="True" />
        </Fields>
    </asp:DetailsView>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of spprivate
spprivate
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brgdotnet

ASKER

Hi spprivate,

Cool, the dummy column option sounds good. In html I know how to do this easily. But how would I do it using asp.net for the code above? Can you show me how?