How to show empty Gridview using ASP.Net

How to show Empty gridview?

Just create the Datatable and bind it to Gridview control.

Imports System.Data
Partial Class _Default
Inherits System.Web.UI.Page
Dim dtrow As DataRow
Dim dtNewTable As New DataTable
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dtcol, dtcol1 As New DataColumn
dtcol.DataType = System.Type.GetType("System.String")
dtcol.ColumnName = "Emp ID"
dtNewTable.Columns.Add(dtcol)
dtcol1.DataType = System.Type.GetType("System.String")
dtcol1.ColumnName = "Emp Name"
dtNewTable.Columns.Add(dtcol1)
Dim i As Integer
For i = 0 To 4
dtrow = dtNewTable.NewRow()
dtrow("Emp ID") = ""
dtrow("Emp Name") = ""
dtNewTable.Rows.Add(dtrow)
Next i
GridView1.DataSource = dtNewTable
GridView1.DataBind()
End Sub
End Class

What is XSL

XSL stands for extensible stylesheet language.its a language used to desing and apply style sheets especially for xml documents.
xsl consists of three parts
1) xslt
2)xpath
3)xsl-fo
xslt:-xslt is a language for transforming xml documents.
xpath :-xpath is an language to filter,search or sort some information available in xml document.
xsl-fo:-xsl-fo is a language for formatting xml documents.
XSLT which stands for xsl Transformation.XSLt is also used to tranform xml document to another xml.

Difference between vb and vb 6

1)VB6 does not support inheritance but VB .NET does
2)VB6 does not support polymorphism but VB .NET does
3) vb is opps based, But VB.Net is Completely supported for oops
4) In dotnet we can develop console applications, web applications, mobile apps, smart device apps, But this was not possible in vb.
5) Lot of Advanced controls available in vb.net
6) in vb, only recordset concepts ( connection methods) are available, ex. DAO, ADO, RDO methods. But in dotnet ado.net(disconnected Database) method is also availble.
7) Cross language integration, Cross language Debugging and cross langauge inheritance is also possible in vb.net.

C# vs VB.Net

1)Vb.Net having supports optional parameters but C# doesnt.
2)C# doesnt have equivalent of vb with/Endwith statements.
3)Vb.Net not case sensitive
4)C# is case sensitive
5)There is no Pointer Type variables in vb.net
6)There is no xml document available in vb.net but C# have
7)Variable declaration in vb.net likeDim x as string
8)variable declaration in C# like string x ;

ADO vs ADO dotnet

Expansion of ADO is ActiveX Data Object.
Ado:-ADO work with connected data.ADO's are stateful(TCP/IP), ADO.NET's are stateless(internet).ADO allows you to create client-side cursors only, whereas ADO.NET gives you the choice of either using client-side or server-side cursors.ADO.NET object is a lightweight object.Ado.Net navigate data with XML. ADO Not nevigate. Table lockings is Possible in ADO and Table Lockings is not Possible in ADO.Net.ADO.NET is the primary relational data access model for Microsoft Dot NET based Application.It works with any component on any platform that understands XML.