How to change the datagrid columns width and label in ASP.NET??
this code doesnt work;
DataGrid1.DataSource = mDataSet.Tables("Table")
DataGrid1.DataBind()
With DataGrid1
.Columns(0).HeaderText = "Employee No."
End With
Help please..
Printable View
How to change the datagrid columns width and label in ASP.NET??
this code doesnt work;
DataGrid1.DataSource = mDataSet.Tables("Table")
DataGrid1.DataBind()
With DataGrid1
.Columns(0).HeaderText = "Employee No."
End With
Help please..
If you've created the datagrid in your ASPX (with the <asp:datagrid> tags), then you can specify the width in the header's tag there.