Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: Imar
Forum: VB.NET 2002/2003 Basics May 12th, 2004, 03:43 PM
Replies: 18
Views: 60,645
Posted By Imar
Yeah, same here. It's quite interesting to find...

Yeah, same here. It's quite interesting to find out the underlying principles of these seemingly easy tasks. I often seem to pick up something useful that comes in handy somewhere down the road.
...
Forum: VB.NET 2002/2003 Basics May 12th, 2004, 03:00 PM
Replies: 18
Views: 60,645
Posted By Imar
I don't know why the code doesn't work with a...

I don't know why the code doesn't work with a more complex DataSet. Right now, I can't see any reason why it would do so. I also don't know why the problem doesn't occur with a simple DataSet. Need...
Forum: VB.NET 2002/2003 Basics May 12th, 2004, 02:00 PM
Replies: 18
Views: 60,645
Posted By Imar
Oh, yeah. I agree with you as well. It *is* hard...

Oh, yeah. I agree with you as well. It *is* hard to find information about this. That's also what I meant with my ".NET makes the easy things difficult" remark.
It took me lots of Googling and...
Forum: VB.NET 2002/2003 Basics May 12th, 2004, 12:49 PM
Replies: 18
Views: 60,645
Posted By Imar
UPDATE: Inside the loop, you're dealing with...

UPDATE: Inside the loop, you're dealing with DataRowViews. Since the SelectedItem expects an Object, you can just pass in the current DataRowView item like this:For Each MyItem As DataRowView In...
Forum: VB.NET 2002/2003 Basics May 12th, 2004, 12:43 PM
Replies: 18
Views: 60,645
Posted By Imar
Hi Ron, Interesting stuff, don't you think? ...

Hi Ron,

Interesting stuff, don't you think?

I think it makes sense that the Combo box thinks it is bound to a DataRowView, because I think it *is* bound to that kind of object.

The Items...
Forum: VB.NET 2002/2003 Basics May 11th, 2004, 05:02 PM
Replies: 18
Views: 60,645
Posted By Imar
Glad it's working now. How did you bind our...

Glad it's working now.

How did you bind our data? Did you assign the DataSet, a DefaultView or an explicit table?

Maybe you can use a more complex DataSet, but you'll need to use a strongly...
Forum: VB.NET 2002/2003 Basics May 11th, 2004, 03:42 PM
Replies: 18
Views: 60,645
Posted By Imar
This is really weird. I tried it with...

This is really weird.

I tried it with "simple objects", an array of Integers and bound it to the Combo. Worked fine.
Then I bound the combo to a DataTable. set the ValueMember to a Guid in the...
Forum: VB.NET 2002/2003 Basics May 11th, 2004, 02:40 PM
Replies: 18
Views: 60,645
Posted By Imar
Hi Ron, There must be other ways to do this,...

Hi Ron,

There must be other ways to do this, but you could use FindStringExact to select the item, like this:

ComboBox1.SelectedIndex = ComboBox1.FindStringExact("YourString")

This will...
Showing results 1 to 8 of 8

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.