PC Review


Reply
Thread Tools Rate Thread

BindingSource IndexOf question

 
 
Andy
Guest
Posts: n/a
 
      16th Dec 2008
I have having difficulty using the IndexOf method of a BindingSource
object. I am able to find the correct row by using "
this.isvgDevelopmentDataSet.individualTBL.FindByindividualID
(individualID)", and this binding source is set up for the
individualTBL, BUT the IndexOf method keeps returning -1 for not
finding the row object.

....

individualID = id;


int pos = this.individualTBLBindingSource.IndexOf(
this.isvgDevelopmentDataSet.individualTBL.FindByindividualID
(individualID));

this.individualTBLBindingSource.Position = pos; //doesn't work, pos =
-1

.....

Any ideas why this is so?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
indexOf question raulavi Microsoft C# .NET 3 9th May 2008 06:49 PM
BindingSource question shark Microsoft ADO .NET 0 24th May 2007 10:38 AM
BindingSource question shark Microsoft C# .NET 0 24th May 2007 10:37 AM
bindingSource question ? mateo Microsoft Dot NET Framework Forms 1 5th Mar 2006 09:44 AM
DUMB question about IndexOf Nonee Microsoft VB .NET 3 25th Jan 2006 12:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:58 AM.