PC Review


Reply
Thread Tools Rate Thread

can't select dataSet from DataGrid

 
 
Enuar Lastamp
Guest
Posts: n/a
 
      10th Feb 2005
Hello, I'm programming in C#, If I put dataSet1 (declared public) in Form2
and dataGrid1 in Form1 when I clic on dataGrid1 and I select DataSource
(from properties) I can't see and select dataSet1,
how can I select dataSet1? thanks ernuar


 
Reply With Quote
 
 
 
 
Chris, Master of All Things Insignificant
Guest
Posts: n/a
 
      10th Feb 2005
You will have to do this in code. Do you have an instance of Form2 in
Form1?

dataGrid1.Datasource = Form2.dataSet1;

Chris

"Enuar Lastamp" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello, I'm programming in C#, If I put dataSet1 (declared public) in Form2
> and dataGrid1 in Form1 when I clic on dataGrid1 and I select DataSource
> (from properties) I can't see and select dataSet1,
> how can I select dataSet1? thanks ernuar
>



 
Reply With Quote
 
Enuar Lastamp
Guest
Posts: n/a
 
      10th Feb 2005
yes I have an istance of Form2 in Form1, but is there a way to do this
without adding code but just selecting dataSet1 from the properties box of
dataGrid1?


"Chris, Master of All Things Insignificant" <chris@No_Spam_Please.com> ha
scritto nel messaggio news:(E-Mail Removed)...
> You will have to do this in code. Do you have an instance of Form2 in
> Form1?
>
> dataGrid1.Datasource = Form2.dataSet1;
>
> Chris
>
> "Enuar Lastamp" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hello, I'm programming in C#, If I put dataSet1 (declared public) in
>> Form2 and dataGrid1 in Form1 when I clic on dataGrid1 and I select
>> DataSource (from properties) I can't see and select dataSet1,
>> how can I select dataSet1? thanks ernuar
>>

>
>



 
Reply With Quote
 
Chris, Master of All Things Insignificant
Guest
Posts: n/a
 
      10th Feb 2005
Not that I know of.. but you know that all selecting that box will do is
add the same line of code into the designer section of your code.

Chris

"Enuar Lastamp" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> yes I have an istance of Form2 in Form1, but is there a way to do this
> without adding code but just selecting dataSet1 from the properties box of
> dataGrid1?
>
>
> "Chris, Master of All Things Insignificant" <chris@No_Spam_Please.com> ha
> scritto nel messaggio news:(E-Mail Removed)...
>> You will have to do this in code. Do you have an instance of Form2 in
>> Form1?
>>
>> dataGrid1.Datasource = Form2.dataSet1;
>>
>> Chris
>>
>> "Enuar Lastamp" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hello, I'm programming in C#, If I put dataSet1 (declared public) in
>>> Form2 and dataGrid1 in Form1 when I clic on dataGrid1 and I select
>>> DataSource (from properties) I can't see and select dataSet1,
>>> how can I select dataSet1? thanks ernuar
>>>

>>
>>

>
>



 
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
Is there a simple way to select a row which has been just inserted in a dataset binded to a datagrid? Juan Microsoft C# .NET 1 12th Nov 2004 09:04 PM
Is there a simple way to select a row which has been just inserted in a dataset binded to a datagrid? Juan Microsoft Dot NET 3 12th Nov 2004 04:15 PM
pls help: how can i select a just inserted row in a datagrid (using a dataset as datasource)? Juan Microsoft C# .NET 2 8th Nov 2004 02:36 PM
pls help: how can i select a just inserted row in a datagrid (using a dataset as datasource)? Juan Microsoft Dot NET 0 8th Nov 2004 12:58 PM
Trying to Bind A DataGrid to a DataSet based on a SQL Select Statement Atley Microsoft VB .NET 2 19th May 2004 09:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 AM.