How Design Bootstrap Layout.

Posted by Jayakumars under C# on 5/20/2016 | Points: 10 | Views : 299 | Status : [Member] [MVP] | Replies : 2

I have images in my Database.
Now i using Gridview for image binding working good.

But i need how to bind Gridview with Bootstrap layout binding from DB Records.

Mark as Answer if its helpful to you


Posted by: Manideepgoud on: 5/20/2016 [Member] Starter | Points: 25

Dear Jayakumar
To create grid view, please visit the below link

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: A2H on: 5/20/2016 [Member] [MVP] Bronze | Points: 25

If you want to apply bootstrap styles to Gridview then you can use any styles for table. Reason is Gridview will render as table at runtime so bootstrap style for table can be applied to gridview.

Sample Code

<link href="" rel="stylesheet" type="text/css" />

<script src=""></script>
<div class="table-responsive">
<asp:GridView ID="GridView2" runat="server" CssClass="table table-bordered" AutoGenerateColumns="False" DataSourceID="SqlDataSource2">
<asp:BoundField DataField="City" HeaderText="City" />
<asp:TemplateField HeaderText="StateProvinceID">
<asp:TextBox ID="TextBox1" runat="server" Text='<%#Bind ("ID") %>'></asp:TextBox>
<ItemStyle HorizontalAlign="Center" />


Notice the css CssClass="table table-bordered" applied to table.This is a bootstrap style for table. You can have any other styles like styles with alternate colors etc

Please mark my reply as answer if it helps to resolve your problem

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response