GridView With an ItemTemplate

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

Add new comment