Strongly Typed Collection - sort in DataGrid

Discussion in 'ASP .Net' started by Mark, Sep 22, 2004.

  1. Mark

    Mark Guest

    Assume you have a strongly typed collection of a class called Person. The
    strongly typed collection implements IEnumerable so it can be databound to a
    server control like a DataGrid. The Person class has several public
    properties like FirstName, LastName, and Gender.

    What steps would it take to allow the collection to be sorted using a
    DataGrid?

    Thanks in advance.

    Mark
     
    Mark, Sep 22, 2004
    #1
    1. Advertising

  2. Here is a great resource for implementing sorting for the datagrid:

    http://msdn.microsoft.com/library/d...ml/vbtskAddingSortingToDataGridWebControl.asp



    "Mark" wrote:

    > Assume you have a strongly typed collection of a class called Person. The
    > strongly typed collection implements IEnumerable so it can be databound to a
    > server control like a DataGrid. The Person class has several public
    > properties like FirstName, LastName, and Gender.
    >
    > What steps would it take to allow the collection to be sorted using a
    > DataGrid?
    >
    > Thanks in advance.
    >
    > Mark
    >
    >
    >
     
    =?Utf-8?B?RGVtZXRyaQ==?=, Sep 22, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Narayanan Sankaranarayanan

    Custom Namespace For Strongly Typed DataSet

    Narayanan Sankaranarayanan, Dec 15, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,096
    Narayanan Sankaranarayanan
    Dec 15, 2004
  2. Imran

    Strongly Typed dataset

    Imran, Jan 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    578
    Richard A. Lowe
    Jan 23, 2004
  3. Big D

    Strongly typed datasets and XML

    Big D, Feb 17, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    462
    bruce barker
    Feb 17, 2004
  4. Øyvind Isaksen
    Replies:
    1
    Views:
    1,001
    Øyvind Isaksen
    May 18, 2007
  5. Dot net work

    Bind strongly typed dictionary class to datagrid?

    Dot net work, Sep 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    200
    Dot net work
    Sep 8, 2004
Loading...

Share This Page