need Only two column in gridview

Posts   
 
    
Posts: 97
Joined: 29-Apr-2009
# Posted on: 06-Jun-2009 10:42:19   

Hello,

i have table called :jobdetails

and it has more than 10 columns

i need only two column in gridview,


     jobCollection = Expirejobs.GetExpiredJobs();
        gvExpireJobs.DataSource = jobCollection;
        gvExpireJobs.DataBind();

i have code like below :

it returns all the column, i need only two column

JobNumber and Title

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-Jun-2009 22:52:10   

You need to modify the gridview to show only that two fields. You can do that via the GridView template or progamatically.

Here is one example...

David Elizondo | LLBLGen Support Team