default view

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

given
DataSet11.Products.DefaultView.Sort = fieldName & " " & sortDirection

is there a way to iterate thru the dataset using the default view or just in
a particular order?

thanks,
rodchar
 
Sure. Just iterate through the View.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
DataSet11.Products.DefaultView.Sort = fieldName & " " & sortDirection

After the preceding line runs should the view be sorted?

because when i try

for each datarow as dataset11.datarow in dataset11.Products.DefaultView
next

i get a specified cast is invalid.
 

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

Back
Top