Sir
In my asp.net application I am binding a gridview dynamically on click event of a button. But the problem is that the populated Gridview is not well formatted. I populated Gridview by following code
Dim SqlDataSource1 As New SqlDataSource()
Dim SQL As String
' If Not IsPostBack Then
SqlDataSource1.ID = "sqlschpr"
Me.Page.Controls.Add(SqlDataSource1)
SqlDataSource1.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("accountsConnectionString").ConnectionString
SQL = "select Entry_date,code,name,net,ifsc,acno from prsch where entry_date between '" & Me.stdate.Text & "' and '" & Me.enddate.Text & "' order by entry_date desc "
SqlDataSource1.SelectCommand = SQL
GridView1.DataSource = SqlDataSource1
GridView1.DataBind()
GridView1.Visible = True
Pl Guide how to format the Gridview so that i may achieve output as following like :
String/Characted Colums ---Left Aligned
Number colums : Right Align
Date column : only dd/MM/yyy field
Thanks