• We just launched and are currently in beta. Join us as we build and grow the community.

GridView With an ItemTemplate

fpsnick

Release Engineer
F Rep
0
0
0
Rep
0
F Vouches
0
0
0
Vouches
0
Posts
126
Likes
41
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 200 XP
We can customise the way a GridView look by using Item Template, we can use in our own convenience

Steps:
1). In our example we are using Northwind Database, table Employees

2). use the following SQLDataSource

3).Insert the following code in your aspx file

Name

:

%#Container.DataItem("firstname")%> %#Container.DataItem("columnename")%>

Hire Date

:

(%# formatdatetime(Container.DataItem("Birthdate"),vbshortdate)%>)

Title: %#Container.DataItem("title")%>



and you will get the GridView with ItemTemplate.

About the author:

PlanetSourceCode.in is a place for all developer providing free source codes, articles, complete projects,complete application in PHP, C/C++, Javascript, Visual Basic, Cobol, Pascal, ASP/VBScript, AJAX, SQL, Perl, Python, Ruby, Mobile Development

 

452,292

324,360

324,368

Top