i want to add more than 1 columns with ColumnName=" " in the C#asp.net datagrid after data is bind to it.
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
e.g. datagrid to look like after name and address columns have bind to datagrid. name l address l l l
in such a situation you will have to hide column after binding it... but if you hide that column using grid property of hiding it then you wont be able to use that data in it or data will be lost on postback...
umerumerumer
-
in such a situation you will have to hide column after binding it... but if you hide that column using grid property of hiding it then you wont be able to use that data in it or data will be lost on postback...
umerumerumer
U can use bound field. BoundField b = new BoundField(); b.DataField = field name you would like to bind with. b.HeaderText = " "; datagrid.Columns.Add(b);