Click here to Skip to main content
15,919,423 members
Home / Discussions / C#
   

C#

 
QuestionPlease Help Me: DataBinding Pin
Phoenix1018-May-07 4:44
Phoenix1018-May-07 4:44 
Hey everyone,
I have a dataset which stores the results of a query that retrieves information from three tables Wink | ;) . The thing is i bound it to a binding navigator and now i want to display the fields in text boxes or labels Sigh | :sigh: . My problem is, i dont know how to bind the navigator to the text boxes. The navigor has information in it, 3 records to be exact which was returned from my query, but now i dont know how to view it in a series of text boxes Cry | :(( .

This is a code sample:
where bs is my binding source,
bngLoop is my binding Navigator,
and ds is my data set;

{
ds.Load(read, LoadOption.OverwriteChanges,
new string[{ "Result" });

bs.DataMember = "Result";
bs.DataSource = ds;


bngLoop.BindingSource = bs;

txtName.DataBindings.Add(new Binding("Text", bs, "Result.Client_Name", false));
}

i keep on getting this error:
DataMember Property 'Result' cannot be found on the DataSource.

Please help me


Phoenix



Phoenix

QuestionPropertyGrid & TimeSpan type Pin
michaelbarner8-May-07 4:34
michaelbarner8-May-07 4:34 
AnswerRe: PropertyGrid & TimeSpan type Pin
visualhint31-May-07 3:18
visualhint31-May-07 3:18 
QuestionReflections Pin
eunderwo008-May-07 4:31
eunderwo008-May-07 4:31 
AnswerRe: Reflections Pin
Jon Hulatt8-May-07 4:53
Jon Hulatt8-May-07 4:53 
GeneralRe: Reflections Pin
Paul Conrad12-May-07 11:08
professionalPaul Conrad12-May-07 11:08 
AnswerRe: Reflections Pin
Colin Angus Mackay12-May-07 7:54
Colin Angus Mackay12-May-07 7:54 
Questionhow to toggle network connection in c# Pin
aviron1238-May-07 4:09
aviron1238-May-07 4:09 
AnswerRe: how to toggle network connection in c# Pin
Paul Brower8-May-07 4:27
Paul Brower8-May-07 4:27 
GeneralRe: how to toggle network connection in c# Pin
aviron1239-May-07 5:16
aviron1239-May-07 5:16 
QuestionDoubleBuffer problem Pin
Eduard Keilholz8-May-07 3:40
Eduard Keilholz8-May-07 3:40 
AnswerRe: DoubleBuffer problem Pin
Gil.Schmidt8-May-07 3:54
Gil.Schmidt8-May-07 3:54 
QuestionL2 Cache Programming Pin
kkchh8-May-07 3:27
kkchh8-May-07 3:27 
AnswerRe: L2 Cache Programming Pin
Dan Neely8-May-07 3:44
Dan Neely8-May-07 3:44 
GeneralRe: L2 Cache Programming Pin
kkchh8-May-07 4:10
kkchh8-May-07 4:10 
QuestionCrystal / MySQL / VS2005 Pin
Russell Jones8-May-07 3:16
Russell Jones8-May-07 3:16 
AnswerRe: Crystal / MySQL / VS2005 Pin
Gopal.S8-May-07 10:39
Gopal.S8-May-07 10:39 
QuestionHelp with looping thru a dataset with a binding navigator. Pin
Phoenix1018-May-07 3:03
Phoenix1018-May-07 3:03 
QuestionSearching string Pin
pavya_Cool8-May-07 2:30
pavya_Cool8-May-07 2:30 
AnswerRe: Searching string Pin
slkr1718-May-07 2:48
slkr1718-May-07 2:48 
QuestionComparing password when Encrypted with MD5 Pin
Rocky#8-May-07 2:23
Rocky#8-May-07 2:23 
AnswerRe: Comparing password when Encrypted with MD5 Pin
Colin Angus Mackay8-May-07 2:34
Colin Angus Mackay8-May-07 2:34 
QuestionStart and control a WebBrowser Pin
apet808-May-07 2:15
apet808-May-07 2:15 
AnswerRe: Start and control a WebBrowser Pin
SimulationofSai8-May-07 4:38
SimulationofSai8-May-07 4:38 
GeneralRe: Start and control a WebBrowser Pin
apet808-May-07 21:35
apet808-May-07 21:35 

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.