How to hide a column in datagrid?

A

ashtek

Hi,

I am using a datagrid with databound columns. I want to set the width
of one of the columns to zero.
I use the following code in the design time.

<ASP:BOUNDCOLUMN DATAFIELD="FieldName" HEADERSTYLE-WIDTH="0"
ITEMSTYLE-WIDTH="0">
</ASP:BOUNDCOLUMN>

But the column still appears when the page loads showing me the data.

I do not want to use VISIBLE="False" because I want this column to be
generated in the client side so that I can access it using JavaScript.

Anyone has any clue?

Thanks in advance,
Ashish.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top