Bootstrap with Asp:Repeater

I am trying to use bootstrap with Asp:Repeater to have space between the columns. However it does not work

                              <div class="row">
                                    <div class="col-md-12">
                                        <asp:Repeater ID="myRepeater" runat="server">
                                        <HeaderTemplate>
                                            <table class="table table-bordered table-striped">
                                                <tr>
                                                    <th class="col-md-4">ID</th>
                                                    <th class="col-md-8">Business Name</th>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                                <tr>
                                                    <td><%# Eval("BusinessID") %></td>
                                                    <td><%# Eval("BusName") %></td>
                                                </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                             </table>
                                        </FooterTemplate>
                                        </asp:Repeater>   
                                     </div>                            
							    </div> 

Open in new window

LVL 1
RecipeDanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MrunalCommented:
Hi
How is it currently looking like ?

If it is not taking full width then try by adding width attribute with value as 100% to table.
Julian HansenCommented:
<div class="col-md-12">

Open in new window

The above is a full width column - so you will only have one per row - what was your intention here?
RecipeDanAuthor Commented:
For example its is how the data looks now

ID           Business Name
24Dan's Pizza & Pasta

Is there a way I can make it look like this:

ID         Business Name
24         Dan's Pizza & Pasta
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Julian HansenCommented:
You could do something like this. I am operating in the dark here as I have no sight of your code or your business requirements so this may not be the best approach but given the information provided this should do what you want.
<div class="row">
  <div class="col-md-6">ID</div>
   <div class="col-md-6">Business Name</div>
</div>
<div class="row">
  <div class="col-md-6">24</div>
   <div class="col-md-6">Dan's Pizza & Pasta</div>
</div>

Open in new window

RecipeDanAuthor Commented:
@Julian you would not use a table instead use div in a Asp:Repeater?
Julian HansenCommented:
Are you asking if you should use a table rather - you can. Rule of thumb is tables is for tabular data not for layout also tables can present some difficulties in responsive design - with the above approach you can build your grid to collapse responsively out of the box.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.