Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hide boundcolumn in grid?

Reply
Thread Tools

Hide boundcolumn in grid?

 
 
Kenneth
Guest
Posts: n/a
 
      01-12-2004
Hi,

In a .aspx I have a grid with 8 boundcolumns. In code
behind I have two methods and the result from the second
method ONLY needs 6 boundcolumns of the 8.

Can I make 2 of the boundcolumns invisible?

Any suggestions?

TIA

/Kenneth
 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      01-12-2004
Try setting the width to 0 ?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


"Kenneth" <(E-Mail Removed)> wrote in message
news:0b4c01c3d920$8ca21840$(E-Mail Removed)...
> Hi,
>
> In a .aspx I have a grid with 8 boundcolumns. In code
> behind I have two methods and the result from the second
> method ONLY needs 6 boundcolumns of the 8.
>
> Can I make 2 of the boundcolumns invisible?
>
> Any suggestions?
>
> TIA
>
> /Kenneth



 
Reply With Quote
 
 
 
 
Kenneth
Guest
Posts: n/a
 
      01-12-2004
Yeah,

But how do I refernce the column? It has no ID.

/Kenneth
>-----Original Message-----
>Try setting the width to 0 ?
>
>--
>Curt Christianson
>Owner/Lead Developer, DF-Software
>www.Darkfalz.com
>
>
>"Kenneth" <(E-Mail Removed)> wrote in message
>news:0b4c01c3d920$8ca21840$(E-Mail Removed)...
>> Hi,
>>
>> In a .aspx I have a grid with 8 boundcolumns. In code
>> behind I have two methods and the result from the second
>> method ONLY needs 6 boundcolumns of the 8.
>>
>> Can I make 2 of the boundcolumns invisible?
>>
>> Any suggestions?
>>
>> TIA
>>
>> /Kenneth

>
>
>.
>

 
Reply With Quote
 
Curt_C [MVP]
Guest
Posts: n/a
 
      01-12-2004
Hmm.... maybe something like this would work
dgSearchResults.Columns[2].Visible = false;


--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com



"Kenneth" <(E-Mail Removed)> wrote in message
news:099c01c3d926$8c6f87d0$(E-Mail Removed)...
> Yeah,
>
> But how do I refernce the column? It has no ID.
>
> /Kenneth
> >-----Original Message-----
> >Try setting the width to 0 ?
> >
> >--
> >Curt Christianson
> >Owner/Lead Developer, DF-Software
> >www.Darkfalz.com
> >
> >
> >"Kenneth" <(E-Mail Removed)> wrote in message
> >news:0b4c01c3d920$8ca21840$(E-Mail Removed)...
> >> Hi,
> >>
> >> In a .aspx I have a grid with 8 boundcolumns. In code
> >> behind I have two methods and the result from the second
> >> method ONLY needs 6 boundcolumns of the 8.
> >>
> >> Can I make 2 of the boundcolumns invisible?
> >>
> >> Any suggestions?
> >>
> >> TIA
> >>
> >> /Kenneth

> >
> >
> >.
> >



 
Reply With Quote
 
Kenneth
Guest
Posts: n/a
 
      01-12-2004
Yep, it works.

Thanks for a rapid answer.

/Kenneth

>-----Original Message-----
>Hmm.... maybe something like this would work
>dgSearchResults.Columns[2].Visible = false;
>
>
>--
>Curt Christianson
>Owner/Lead Developer, DF-Software
>www.Darkfalz.com
>
>
>
>"Kenneth" <(E-Mail Removed)> wrote in

message
>news:099c01c3d926$8c6f87d0$(E-Mail Removed)...
>> Yeah,
>>
>> But how do I refernce the column? It has no ID.
>>
>> /Kenneth
>> >-----Original Message-----
>> >Try setting the width to 0 ?
>> >
>> >--
>> >Curt Christianson
>> >Owner/Lead Developer, DF-Software
>> >www.Darkfalz.com
>> >
>> >
>> >"Kenneth" <(E-Mail Removed)> wrote in message
>> >news:0b4c01c3d920$8ca21840$(E-Mail Removed)...
>> >> Hi,
>> >>
>> >> In a .aspx I have a grid with 8 boundcolumns. In code
>> >> behind I have two methods and the result from the

second
>> >> method ONLY needs 6 boundcolumns of the 8.
>> >>
>> >> Can I make 2 of the boundcolumns invisible?
>> >>
>> >> Any suggestions?
>> >>
>> >> TIA
>> >>
>> >> /Kenneth
>> >
>> >
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boundcolumn or TemplateField when to use Boundcolumn and when TemplateField ???? mesut ASP .Net 0 06-29-2007 10:17 AM
[HIDE LAN] Hide a part of hosts into the LAN at VPN users? Paolo Bresi Cisco 1 04-04-2005 02:41 PM
DataGrid ButtonColumn/BoundColumn problem John ASP .Net 3 11-03-2003 02:20 PM
Re: DataGrid - problem with calling handler for BoundColumn Newton ASP .Net 1 07-27-2003 09:47 AM
convert tablecell to boundcolumn May ASP .Net 0 06-30-2003 07:43 PM



Advertisments