Re: How do I only bind certain columns with a DataGrid?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: rbutch_at_coair.com ((rbutch_at_coair.com))
Date: 12/13/04


Date: Mon, 13 Dec 2004 11:28:03 -0800

yes, i would set the auto gen to false.
then go into the code behind and right before the end tag of the datagrid,bind the columns you want.

<Columns>
<asp:BoundColumn DataField="Actual_Column_Name" HeaderText="whatever"></asp:BoundColumn>
<asp:BoundColumn DataField="Actual_Column_Name" HeaderText="whatever"></asp:BoundColumn>
                                 
</Columns>

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...



Relevant Pages

  • problem with phrase
    ... Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ ... Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... ...
    (microsoft.public.inetserver.indexserver)
  • Re: don
    ... Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ ... Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... ...
    (microsoft.public.data.oledb)
  • Different colors in List Boxes?
    ... Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ ... Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: equijoins with column aliases
    ... Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ ... Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... ...
    (microsoft.public.dotnet.framework.adonet)
  • Different Colors in List Boxes...?
    ... Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ ... Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... ...
    (microsoft.public.dotnet.general)