Hi,
First you have to set the autogeneratecolumns property to false for the
datagrid. then you can add columns in the aspx file or in the code behind
file.
code for aspx
<Columns>
<asp:BoundColumn DataField="[colname]" HeaderText="nameforthecol">
</asp:BoundColumn>
</columns>
or in code behind like
Dim bcTemp As BoundColumn = new BoundColumn
bcTemp.DataField = "[colname]"
bcTemp.HeaderText = "nameforthecol"
dgFileList.Columns.Add(bcTemp)
--
HTH
srini
http://www.expertszone.com
"Paperback Writer" wrote:
Hi Folks,
I would like to know how can i specify columns in my DataGrid manually ?
I have a proc that is binding my DataGrid with 15 columns and i want just
some of these columns, how can i ?
Thanks in advance
--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx