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 3 1287
You will have to do this in code. Do you have an instance of Form2 in
Form1?
dataGrid1.Datas ource = Form2.dataSet1;
Chris
"Enuar Lastamp" <er****@yahoo.c om> wrote in message
news:eA******** ******@TK2MSFTN GP15.phx.gbl... 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
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:ew******** ******@TK2MSFTN GP12.phx.gbl... You will have to do this in code. Do you have an instance of Form2 in Form1?
dataGrid1.Datas ource = Form2.dataSet1;
Chris
"Enuar Lastamp" <er****@yahoo.c om> wrote in message news:eA******** ******@TK2MSFTN GP15.phx.gbl... 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
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" <er****@yahoo.c om> wrote in message
news:ep******** *****@tk2msftng p13.phx.gbl... 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:ew******** ******@TK2MSFTN GP12.phx.gbl... You will have to do this in code. Do you have an instance of Form2 in Form1?
dataGrid1.Datas ource = Form2.dataSet1;
Chris
"Enuar Lastamp" <er****@yahoo.c om> wrote in message news:eA******** ******@TK2MSFTN GP15.phx.gbl... 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Juan |
last post by:
Do i have to loop trough a datagrid in order to find and select a row just
being inserted in the dataset connected to the data grid? is there any event
i can capture in the datagrid to obtain the inserted row? I need to obtain
its position in the datagrid...
Any help is really welcome.
|
by: Juan |
last post by:
Any help or advice is very welcome.
Thanks,
Juan.
|
by: Ed_P. |
last post by:
Hello
I have a Windows Form that I am trying to use to display data in a DataGrid object from an Access Database. I have created an OleDbCommand Object (with the appropriate Connection string) to Select the appropriate data. I then use a OleDbDataAdapater to Fill a DataSet object. My problem is that I can't seem to show the results of the query on my datagrid object. Here is Code
private void btnSearch_Click(object sender,...
|
by: jez123456 |
last post by:
Hi. I have a web form with a datagrid that displays employees who are on holiday. One of the datagrid columns shows the date of their last day of holiday, but what I really require is the Start Back at work date, i.e. if their last day of holiday is a Friday, then the Start Back date should be the following Monday (ignoring any weekends and public holiday dates).
I have a table which holds the national holiday dates (tblUKHolidays), but how...
|
by: CaptRR |
last post by:
I think this is the right group to post to, so here goes.
My problem is this, I cannot update the datarow to save my life. Been
on this for 2 days now, and still am no closer to figuring it out than I
was before. I'm basicly taking date from some text boxes, trying to put
them into a datarow and using that datarow to update the database, but
its not working. The btn_update is where I am sending the information
back to the addclient...
| |
by: Teep |
last post by:
Below is my code for dropdownlist that is populated from a SQL table.
After a selection from the ddl, a datagrid is suppose to come up
pertaining to the information selected, but I keep getting a DNS
error. I developed this "simple" page but so far it is not simple!
argh!
<%@ Page Language="VB" Debug="true" Explicit="true" %>
<%@ import Namespace="System.Data" %>
|
by: Dan Sikorsky |
last post by:
How do you select records from one dataset and create a second dataset? I
need to pull out the master records from a dataset and create a master
datagrid in which to embed a details datagrid (for a master/details type
report).
--
Thank you kindly,
Dan Sikorsky BAB, BScE, MSC
|
by: Jack |
last post by:
I have the following:
* An OLEDBCommand with command text "SELECT CAMPAIGN,
DAY_OUT WHERE (CAMPAIGN LIKE '@campaign')"
* A DataAdapter that point the select to the above command
* A data grid that I use to display the data
* form load code to populate the controls:
DsCampaign1 = New DataSet
cmdProActiTmp_Sel.Parameters.Item("@Campaign").Value = _
Trim(txtcampaign.Text())
|
by: Mrozu |
last post by:
Hi
I need execute SELECT SQL query in DataSet. No in SQL
server(da.selectcommand) and fill dataset, only show in datagrid
filtered by select-where query records from dataset:) For example I
fill dataset(ds)
da.selectcommand.commandtext="select * from xxx"
da.fill(ds.tables(0))
and when i write
|
by: Rich |
last post by:
Hello,
I have a master and detail table in sql server. Say the master has 10 rows
and detail has 45 rows. I fill 2 tables in my dataset in the client app.
When I iterate through the master table in the client app, I display the row
contents in Textboxes. I want to display the corresponding detail data for
each row in a datagrid.
My question is if I can pull the master and detail data and populate the
corresponding tables in the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |