By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,626 Members | 2,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,626 IT Pros & Developers. It's quick & easy.

eliminating/hiding first datarow column

P: n/a
VM
How can I eliminate or hide the first column in a datarow? This is the
column that doesn't have any data; it just points to the record the user's
in (the column with the horizontal arrow).
Thanks,
VM
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
RowHeaderVisible?

"VM" <None> wrote in message news:e%****************@TK2MSFTNGP10.phx.gbl...
How can I eliminate or hide the first column in a datarow? This is the
column that doesn't have any data; it just points to the record the user's
in (the column with the horizontal arrow).
Thanks,
VM

Nov 15 '05 #2

P: n/a
You can determine which columns in your DataGrid are displayed by
setting its AutoGenerateColumns to false and manualy controlling which
columns you wish to display.

for example within the HTML code perhap:
<ASP:DataGrid ID="myGrid" RunAt="SERVER" AutoGenerateColumns="false">

<Columns>

<ASP:TemplateColumn HeaderText="Contact #">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"CN") %>
</ItemTemplate>
</ASP:TemplateColumn>

..
..
..
..

<ASP:TemplateColumn HeaderText="Power">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"PWR") %>
</ItemTemplate>
</ASP:TemplateColumn>

</Columns>

</ASP:DataGrid>


On Mon, 4 Aug 2003 16:16:06 -0500, "VM" <None> wrote:
How can I eliminate or hide the first column in a datarow? This is the
column that doesn't have any data; it just points to the record the user's
in (the column with the horizontal arrow).
Thanks,
VM


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.