Sort a Datagrid with DataRelation

Discussion in 'ASP .Net Datagrid Control' started by Vsiah, Jan 19, 2005.

  1. Vsiah

    Vsiah Guest

    Hello,

    I have a main datagrid and a nested datagrid, which is
    using a parent/child datarelation. Now I need to sort the
    childgrid. I wrote the following code:

    Dim viewManager As New DataViewManager(ds)
    viewManager.DataViewSettings(1).Sort = ViewState
    ("SortExpression")
    DataGrid1.DataSource = viewManager

    But this code gives me the following run-time error:

    No default member found for
    type 'DataViewManagerListItemTypeDescriptor'.

    How can this be? Any suggestion?
    Vsiah, Jan 19, 2005
    #1
    1. Advertising

  2. Vsiah

    Vishakl Guest

    Is there anybody who can help me with that?


    >-----Original Message-----
    >Hello,
    >
    > I have a main datagrid and a nested datagrid, which

    is
    >using a parent/child datarelation. Now I need to sort the
    >childgrid. I wrote the following code:
    >
    >Dim viewManager As New DataViewManager(ds)
    >viewManager.DataViewSettings(1).Sort = ViewState
    >("SortExpression")
    >DataGrid1.DataSource = viewManager
    >
    >But this code gives me the following run-time error:
    >
    >No default member found for
    >type 'DataViewManagerListItemTypeDescriptor'.
    >
    >How can this be? Any suggestion?
    >.
    >
    Vishakl, Jan 20, 2005
    #2
    1. Advertising

  3. are you working with a typed dataset? what are the constrains on the
    datagrid? You will need to provide some code that shows the issue

    --
    Regards,
    Alvin Bruney

    Shameless Author plug
    The Microsoft Office Web Components Black Book with .NET
    http://tinyurl.com/27cok


    "Vishakl" <> wrote in message
    news:003801c4ff23$1abfeb60$...
    > Is there anybody who can help me with that?
    >
    >
    >>-----Original Message-----
    >>Hello,
    >>
    >> I have a main datagrid and a nested datagrid, which

    > is
    >>using a parent/child datarelation. Now I need to sort the
    >>childgrid. I wrote the following code:
    >>
    >>Dim viewManager As New DataViewManager(ds)
    >>viewManager.DataViewSettings(1).Sort = ViewState
    >>("SortExpression")
    >>DataGrid1.DataSource = viewManager
    >>
    >>But this code gives me the following run-time error:
    >>
    >>No default member found for
    >>type 'DataViewManagerListItemTypeDescriptor'.
    >>
    >>How can this be? Any suggestion?
    >>.
    >>
    Alvin Bruney [MVP], Jan 20, 2005
    #3
    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. mazda_88
    Replies:
    0
    Views:
    1,409
    mazda_88
    Jun 7, 2004
  2. Marco Ippolito
    Replies:
    0
    Views:
    2,555
    Marco Ippolito
    Oct 11, 2004
  3. =?Utf-8?B?SSBhbSBTYW0=?=

    DataRelation on Multible layers of DataRelations

    =?Utf-8?B?SSBhbSBTYW0=?=, Mar 5, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    525
    Karl Seguin
    Mar 6, 2005
  4. =?Utf-8?B?SSBhbSBTYW0=?=

    DataRelation Collection Problem and Repeater

    =?Utf-8?B?SSBhbSBTYW0=?=, Mar 6, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    2,382
    =?Utf-8?B?SSBhbSBTYW0=?=
    Mar 7, 2005
  5. Kevin  Davis via DotNetMonster.com

    DataRelation

    Kevin Davis via DotNetMonster.com, Mar 25, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    701
    Jason Bentley
    Mar 28, 2005
Loading...

Share This Page