Hi, I'm writing a program with Microsoft Visual C# .net version 2002
the program has 4 Forms
and all the database components (DataSet, OleDbDataAdapte r, OleDbConnection )
are in form4
as I've got DataGrids in the other forms,
if I go in one of these forms
in the datagrid property, selecting the DataSource I can't select the
dataset in form4
how can I see the dataset in form4 from the other forms?
thankyou
Sam 2 1337
"Sam74" <sa***@libero.i t> wrote in message
news:O3******** ******@TK2MSFTN GP10.phx.gbl... Hi, I'm writing a program with Microsoft Visual C# .net version 2002 the program has 4 Forms and all the database components (DataSet, OleDbDataAdapte r,
OleDbConnection ) are in form4 as I've got DataGrids in the other forms, if I go in one of these forms in the datagrid property, selecting the DataSource I can't select the dataset in form4 how can I see the dataset in form4 from the other forms? thankyou Sam
DataSets are global (project namespace, not members of a form), aren't they?
You may want to create a Class that holds that dataset as a Property and at
runtime bind it accordingly. If you use it as a Static property, you should
be ok.
Cheers,
Bill
"Sam74" <sa***@libero.i t> wrote in message
news:O3******** ******@TK2MSFTN GP10.phx.gbl... Hi, I'm writing a program with Microsoft Visual C# .net version 2002 the program has 4 Forms and all the database components (DataSet, OleDbDataAdapte r,
OleDbConnection ) are in form4 as I've got DataGrids in the other forms, if I go in one of these forms in the datagrid property, selecting the DataSource I can't select the dataset in form4 how can I see the dataset in form4 from the other forms? thankyou Sam
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: aaa |
last post by:
Hi
I am trying to create a read-only DataGrid that would always have
current row selected. Currently, I am using method:
public void SelectDataGridRow(DataGrid dg)
{
if (dg.CurrentRowIndex > -1)
{
dg.Select(dg.CurrentRowIndex);
|
by: freddy |
last post by:
I have a class for DatabaseManager.cs that has all the connection path, add,
update, delete.I have a problem with the datagrid because I have a form that
contains the datagrid called frmAllProjects.cs, so how do I connected to my
dbmanager.cs from the form.
DatabaseManager Code:
OleDbConnection Conn = new OleDbConnection();
string sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\\Freddy\\Projects\\vb.net\\Project Track...
|
by: Johann Blake |
last post by:
I have a form with textboxes that are bound to a dataset. The dataset
contains two tables and some of the textboxes use data from one table
while other textboxes use data from the other table. I use a datagrid
to allow all of the records from one of the table to be displayed and
when one record is selected with the mouse, the textboxes are filled
with data from the other table. When I go to bind the textboxes during
run-time, I have need...
|
by: aaj |
last post by:
Hi all
I use a data adapter to read numerous tables in to a dataset.
The dataset holds tables which in turn holds full details of the records
i.e. keys, extra colums etc..
In some cases I need to use parts of the tables in datagrids, and here is
where my problem lies
|
by: vips |
last post by:
Page_Load
datagrid1.datasource=dataset1
//I am filling the datagrid and it works fine when page is displayed
end
---------------
| |
by: Bob Loveshade |
last post by:
I am looking for an example that shows how to select and highlight
multiple rows in a DataGrid.
My DataGrid is part of a Web User Control which is contained in an ASPX
page.
I haven't been able to find any examples which demonstrate how to do
this.
My Code:
|
by: AA |
last post by:
Do anyone know how to refresh the datagrid without setting datasource to
nothing and initialize the grid again?
My case is that I have form consisting from two part. The upper part is a
datagrid while the lower is the record detail.
Once user, said selected/hightlighted row 3 for editing the detail info.
Then, user click "Save". I want the datagrid to be refreshed so as to
displaying the latest changes of the record info without moving...
|
by: Ron L |
last post by:
I have a data table that lists a series of items in my database. In my user
form, I want the user to be able to filter by a number of criteria (e.g.
location, contract, date modified, etc). Other than modified date, all my
filters are selected via combo boxes. I would like to have the combo boxes
update so that if there are no items available in the currently filtered
list for a given selection, that selection will not appear in the...
|
by: JoaquimC |
last post by:
Hello,
I'm new to c#, and i am trying to implement the following behaviour to a DataGrid:
When i locate a record in one DataTable i want to select and show the respective grid row in the DataGrid.
The DataGrid.DataSource is a DataSet called 'MinhaTabela'.
The DataGrid.DataMember is a DataTable from that DataSet, called 'Nomes'.
When i find one record on that DataTable i want that the respective row in the DataGrid is selected.
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |