Is there a way I can get the table for which a given currencymanager is
pointed to?
I am thinking of a routine that take a currencymanager as an arguement,
figures out which table it represents and issues an update for the
appropriate data adapter.
Thanks 4 913
Hi,
"astro" <as***@mnrr.com > wrote in message
news:ZR******** ********@tornad o.rdc-kc.rr.com... Is there a way I can get the table for which a given currencymanager is pointed to?
Even when you bind to a DataTable or DataSet internally a DataView is used
by the CurrencyManager , so to get the Table, you first get the view :
Public Function GetTable(ByVal cm As CurrencyManager ) As DataTable
Dim view As DataView = DirectCast(cm.L ist, DataView)
Return view.Table
End Function
Hth,
Greetings I am thinking of a routine that take a currencymanager as an arguement, figures out which table it represents and issues an update for the appropriate data adapter.
Thanks
thanks - that works )
is there a way to get the dataAdapter from the the currencyManager ?
otherwise I code the 'select case.........'
"Bart Mermuys" <bm************ *@hotmail.com> wrote in message
news:uA******** ******@TK2MSFTN GP14.phx.gbl... Hi,
"astro" <as***@mnrr.com > wrote in message news:ZR******** ********@tornad o.rdc-kc.rr.com... Is there a way I can get the table for which a given currencymanager is pointed to?
Even when you bind to a DataTable or DataSet internally a DataView is used by the CurrencyManager , so to get the Table, you first get the view :
Public Function GetTable(ByVal cm As CurrencyManager ) As DataTable
Dim view As DataView = DirectCast(cm.L ist, DataView) Return view.Table
End Function
Hth, Greetings
I am thinking of a routine that take a currencymanager as an arguement, figures out which table it represents and issues an update for the appropriate data adapter.
Thanks
Hi,
"astro" <as***@mnrr.com > wrote in message
news:F%******** ******@tornado. rdc-kc.rr.com... thanks - that works )
is there a way to get the dataAdapter from the the currencyManager ?
No, a DataAdapter is not associated with a CurrencyManager .
A Select...Case would do it, an alternative is to use a Hashtable for
associating each DataTable with a CurrencyManager .
Hth,
Greetings otherwise I code the 'select case.........'
"Bart Mermuys" <bm************ *@hotmail.com> wrote in message news:uA******** ******@TK2MSFTN GP14.phx.gbl... Hi,
"astro" <as***@mnrr.com > wrote in message news:ZR******** ********@tornad o.rdc-kc.rr.com... Is there a way I can get the table for which a given currencymanager is pointed to?
Even when you bind to a DataTable or DataSet internally a DataView is used by the CurrencyManager , so to get the Table, you first get the view :
Public Function GetTable(ByVal cm As CurrencyManager ) As DataTable
Dim view As DataView = DirectCast(cm.L ist, DataView) Return view.Table
End Function
Hth, Greetings
I am thinking of a routine that take a currencymanager as an arguement, figures out which table it represents and issues an update for the appropriate data adapter.
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: melanieab |
last post by:
Hi,
Easy question. It seems to me that I'm following the examples correctly,
but apparently I'm not. I'm trying to retrieve the data from a row called
"row" and a column called "File". This is what I have: (xFile is the int
value in column File and tCat is the table)
First I try:
xFile = int.Parse((tCat.Rows).ToString());
Another example I found:
|
by: BrianDP |
last post by:
I have a database with a split front end/back end. There is a key
table in the back end called Catalog, and it is sort of a central key
table for all sorts of things. It's a list of all the jobs that have
ever been worked on at our company. Records are getting lost out of
this table, but I have no way of figuring out how they're being
deleted. Records should NEVER be deleted out of this table. They can
be marked as inactive, or...
|
by: simbarashe |
last post by:
Hie
could someone please help me with getting and using the current page url. I have a function that gets the url, I want to use it with header(location : XXX) but it wont work. The code is as follows:
The code below is for the first page:session_start is in line 3
<link href="css/jobSheet.css" rel="stylesheet" type="text/css" />
session_start();
|
by: vikas251074 |
last post by:
I am not getting date value in spite of my good effort. This code was working in my last office where I work. Now I am trying to work at my home pc. but not getting date value. Any can help me why this happens. This is my part of code given below.
<%@ Language=VBScript%>
<%Option Explicit%>
<html>
<head>
<title>SABF</title>
<!--#include file="font.css"-->
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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: 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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.
|
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...
| |