Click here to Skip to main content
15,908,909 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionBindingsource.find is missing the first item.! Pin
MAP Tiger20-Jul-08 6:35
MAP Tiger20-Jul-08 6:35 
Hi
I have filled a dataset at runtime and then binded to bindingsource1, it is working nicely but when i was searching the list it is continuously ignoring the first item.

dim idx as Integer = BindingSource1.Find("City",CityName)


Then I manually check the idx property and if it is -1 then it checks the first item if it matches or not and it matches.

If idx=-1 then
    If BindingSource1.Item(0)("CityName") = CityName then idx=0
End if


Although the technique works but why is it so and why can't it find the first row?

Regards,

MAP Tiger
Tiger Softwares

Software Designer and Developer
VB.NET, ASP.NET, VFP

Questiondataset corrupt Pin
fazeepk20-Jul-08 5:45
fazeepk20-Jul-08 5:45 
AnswerRe: dataset corrupt Pin
Guffa20-Jul-08 6:16
Guffa20-Jul-08 6:16 
AnswerRe: dataset corrupt Pin
Vimalsoft(Pty) Ltd21-Jul-08 3:54
professionalVimalsoft(Pty) Ltd21-Jul-08 3:54 
QuestionQuestion : New Row Pin
zzsoulzz20-Jul-08 5:11
zzsoulzz20-Jul-08 5:11 
AnswerRe: Question : New Row Pin
paas20-Jul-08 5:58
paas20-Jul-08 5:58 
Questionvertical line size is decreased in report Pin
sunil goyalG19-Jul-08 23:20
sunil goyalG19-Jul-08 23:20 
QuestionComboBox add issues! Pin
Dalek Dave19-Jul-08 13:05
professionalDalek Dave19-Jul-08 13:05 
AnswerRe: ComboBox add issues! Pin
Luc Pattyn19-Jul-08 13:22
sitebuilderLuc Pattyn19-Jul-08 13:22 
GeneralRe: ComboBox add issues! Pin
Dalek Dave19-Jul-08 14:02
professionalDalek Dave19-Jul-08 14:02 
GeneralRe: ComboBox add issues! Pin
Luc Pattyn19-Jul-08 14:41
sitebuilderLuc Pattyn19-Jul-08 14:41 
GeneralRe: ComboBox add issues! Pin
Dalek Dave20-Jul-08 3:04
professionalDalek Dave20-Jul-08 3:04 
GeneralRe: ComboBox add issues! Pin
jzonthemtn19-Jul-08 13:51
jzonthemtn19-Jul-08 13:51 
AnswerRe: ComboBox add issues! Pin
Member 397995021-Jul-08 0:48
Member 397995021-Jul-08 0:48 
QuestionMDI Parent with a ToolStripContainer Pin
jacobjordan19-Jul-08 8:29
jacobjordan19-Jul-08 8:29 
Questionsuggest me way to handle piracy of my applications developed in vb.net Pin
r_mohd19-Jul-08 1:11
r_mohd19-Jul-08 1:11 
AnswerRe: suggest me way to handle piracy of my applications developed in vb.net Pin
Vimalsoft(Pty) Ltd21-Jul-08 4:27
professionalVimalsoft(Pty) Ltd21-Jul-08 4:27 
GeneralRe: suggest me way to handle piracy of my applications developed in vb.net Pin
r_mohd21-Jul-08 18:52
r_mohd21-Jul-08 18:52 
GeneralRe: suggest me way to handle piracy of my applications developed in vb.net Pin
Vimalsoft(Pty) Ltd21-Jul-08 22:56
professionalVimalsoft(Pty) Ltd21-Jul-08 22:56 
GeneralRe: suggest me way to handle piracy of my applications developed in vb.net Pin
r_mohd21-Jul-08 23:35
r_mohd21-Jul-08 23:35 
Questiondelete site track from history in VB or VBA Pin
sal2118-Jul-08 11:16
sal2118-Jul-08 11:16 
RantRe: delete site track from history in VB or VBA Pin
Paul Conrad18-Jul-08 12:23
professionalPaul Conrad18-Jul-08 12:23 
AnswerRe: delete site track from history in VB or VBA Pin
Luc Pattyn18-Jul-08 12:46
sitebuilderLuc Pattyn18-Jul-08 12:46 
Questionsql and vb.net Pin
jacko87318-Jul-08 7:37
jacko87318-Jul-08 7:37 
QuestionRe: sql and vb.net Pin
Paul Conrad18-Jul-08 8:07
professionalPaul Conrad18-Jul-08 8:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.