PC Review


Reply
Thread Tools Rate Thread

Databinding in c# - Important

 
 
Hemang Shah
Guest
Posts: n/a
 
      24th Jan 2005
Hello

All the samples I found are based on datagrid for the child table.

What if I don't want the child records to be displayed in a datagrid, but in
their own data bound controls like "text box, combo & list boxes). And I
want to provide a second level of navigation buttons to traverse those child
records in the child table.

I'm sure this is possible, but I can't seem to find any sample on it.

Please let me know if you can throw any light on it.

Thank You



 
Reply With Quote
 
 
 
 
W.G. Ryan eMVP
Guest
Posts: n/a
 
      24th Jan 2005
You can use the BindingContext and the BindingManagerBase classes to
accomplish this... using the Control.DataBindings.Add( , , )

I don't have any sample off of the top of my head but if you put in
BindingContext and BindingManagerBase in google, you'll find some

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Hemang Shah" <(E-Mail Removed)> wrote in message
news:ToidnScZwb7iqGjcRVn-(E-Mail Removed)...
> Hello
>
> All the samples I found are based on datagrid for the child table.
>
> What if I don't want the child records to be displayed in a datagrid, but

in
> their own data bound controls like "text box, combo & list boxes). And I
> want to provide a second level of navigation buttons to traverse those

child
> records in the child table.
>
> I'm sure this is possible, but I can't seem to find any sample on it.
>
> Please let me know if you can throw any light on it.
>
> Thank You
>
>
>



 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      24th Jan 2005
Hemang,

It's the same as if you were binding to the grid. When you add the
binding for the control to the child table, you set the data source to the
relation, not to the child table itself.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Hemang Shah" <(E-Mail Removed)> wrote in message
news:ToidnScZwb7iqGjcRVn-(E-Mail Removed)...
> Hello
>
> All the samples I found are based on datagrid for the child table.
>
> What if I don't want the child records to be displayed in a datagrid, but
> in
> their own data bound controls like "text box, combo & list boxes). And I
> want to provide a second level of navigation buttons to traverse those
> child
> records in the child table.
>
> I'm sure this is possible, but I can't seem to find any sample on it.
>
> Please let me know if you can throw any light on it.
>
> Thank You
>
>
>



 
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
Databinding expressions are only supported on objects that have a DataBinding event jobs Microsoft ASP .NET 0 26th Sep 2007 12:54 AM
Gridview encoding, or how to run commands before gridview's default databinding, or, how do I disable default databinding at all? Sergei Shelukhin Microsoft ASP .NET 1 12th Nov 2006 01:43 PM
TCP/IP V.6 is it that important Indeo Windows XP General 1 5th Oct 2006 08:30 PM
Databinding in c# - Important Hemang Shah Microsoft C# .NET 2 24th Jan 2005 06:14 PM
Databinding Bible (REPOST FROM m.p.d.f.WindowsForms.Databinding) a Microsoft ADO .NET 1 16th Jul 2004 03:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:05 PM.