PC Review


Reply
Thread Tools Rate Thread

Dataset & Datasource question

 
 
Filip D'haene
Guest
Posts: n/a
 
      21st May 2004
Hi,

I want to use an application-wide dataset that I want to use in all my
forms. I have a main form where I added a dataset with the designer. Then I
reference this dataset as the datasource for my grid on the main form. So
far no problem. But when I create a secondary form also with a
grid I can't use my dataset I have made in my main form as the datasource in
designer mode even when the visibility level of my dataset is public. So I
must manually set the datasource of my grid in the secondary form in code to
reference my dataset of the main form. Is there a
posibility to reference a public dataset decared in an certain form as the
datasource in a different form in designer mode ?

Thanks,

Filip D'haene



 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      21st May 2004
Hi filip,

When you want this, than in my opinion are more dataviews your way to go.

Cor

> I want to use an application-wide dataset that I want to use in all my
> forms. I have a main form where I added a dataset with the designer. Then

I
> reference this dataset as the datasource for my grid on the main form. So
> far no problem. But when I create a secondary form also with a
> grid I can't use my dataset I have made in my main form as the datasource

in
> designer mode even when the visibility level of my dataset is public. So I
> must manually set the datasource of my grid in the secondary form in code

to
> reference my dataset of the main form. Is there a
> posibility to reference a public dataset decared in an certain form as the
> datasource in a different form in designer mode ?
>
> Thanks,
>
> Filip D'haene
>
>
>



 
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
How can i use a dataset w/o a datasource? forest demon Microsoft C# .NET 5 10th Jan 2008 05:18 PM
How can I use a dataset as datasource for a combobox? Johan Goris Microsoft C# .NET 1 16th Aug 2004 07:22 AM
why can I set grid's DataSource to a DataSet but not to a table in the DataSet? Bennett Haselton Microsoft ADO .NET 1 25th Jul 2004 09:24 AM
DataSource without DataSet? Peter Rabbit Microsoft ADO .NET 2 17th Jul 2003 10:03 PM
cast datagrid.datasource to dataset (datasource is table) newsgroper@yahoo.com Microsoft Dot NET Framework Forms 1 4th Jul 2003 05:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:49 PM.