You need to use ItemStyle-HorizontalAlign and DataFormatString attribute/Property to format the data in Bound field.
Refer the below code for your reference and implement it according to your code logic.
HTML
<asp:GridView ID="gvGrid" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="EmployeeName" HeaderStyle-HorizontalAlign="Center" HeaderText="Employee Name"
ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="150px" ItemStyle-Width="150px" />
<asp:BoundField DataField="EmployeeCode" HeaderStyle-HorizontalAlign="Center" HeaderText="Employee Code"
ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="120px" ItemStyle-Width="120px" />
<asp:BoundField DataField="BirthDate" HeaderStyle-HorizontalAlign="Center" HeaderText="Birth Date"
ItemStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-Width="120px" ItemStyle-Width="120px" />
<asp:BoundField DataField="Salary" HeaderStyle-HorizontalAlign="Center" HeaderText="Salary"
DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="100px" ItemStyle-Width="100px" />
</Columns>
</asp:GridView>
C#
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[4] { new DataColumn("EmployeeName",typeof(string))
, new DataColumn("EmployeeCode",typeof(int))
, new DataColumn("BirthDate",typeof(DateTime))
, new DataColumn("Salary",typeof(decimal))});
dt.Rows.Add("Vaibhav", 1, "1988-01-15", 15000.50);
dt.Rows.Add("Vishal", 2, "1985-04-01", 16000.00);
dt.Rows.Add("Sachin", 3, "1986-03-18", 14000.00);
dt.Rows.Add("Yogesh", 4, "1987-09-19", 17000.00);
gvGrid.DataSource = dt;
gvGrid.DataBind();
VB.Net
Dim dt As New DataTable()
dt.Columns.AddRange(New DataColumn(3) {New DataColumn("EmployeeName", GetType(String)), New DataColumn("EmployeeCode", GetType(Integer)), New DataColumn("BirthDate", GetType(DateTime)), New DataColumn("Salary", GetType(Decimal))})
dt.Rows.Add("Vaibhav", 1, "1988-01-15", 15000.5)
dt.Rows.Add("Vishal", 2, "1985-04-01", 16000.0)
dt.Rows.Add("Sachin", 3, "1986-03-18", 14000.0)
dt.Rows.Add("Yogesh", 4, "1987-09-19", 17000.0)
gvGrid.DataSource = dt
gvGrid.DataBind()
Output
Employee Name | Employee Code | Birth Date | Salary |
Vaibhav |
1 |
15/01/1988 |
15,000.50 |
Vishal |
2 |
01/04/1985 |
16,000.00 |
Sachin |
3 |
18/03/1986 |
14,000.00 |
Yogesh |
4 |
19/09/1987 |
17,000.00 |