Sort a Datagrid with DataRelation

V

Vsiah

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?
 
A

Alvin Bruney [MVP]

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top