473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Dataset Current row

Hi!
Its probably a stupid question but how can I retreive the
column of the current row?
Example: This retreive the value in the ID column for the
first row. dstForeignKey.Tables(0).Rows(0)("ID")
But I want the current position in the dataset.

Thanks Joel :)
Nov 20 '05 #1
4 5299
Maybe this will help
Me.BindingContext(objdsPrime, "Client").RemoveAt
(Me.BindingContext(objdsPrime, "Client").Position)
-----Original Message-----
Hi!
Its probably a stupid question but how can I retreive thecolumn of the current row?
Example: This retreive the value in the ID column for thefirst row. dstForeignKey.Tables(0).Rows(0)("ID")
But I want the current position in the dataset.

Thanks Joel :)
.

Nov 20 '05 #2
"Joel" <an*******@discussions.microsoft.com> schrieb
Hi!
Its probably a stupid question but how can I retreive the
column of the current row?
Example: This retreive the value in the ID column for the
first row. dstForeignKey.Tables(0).Rows(0)("ID")
But I want the current position in the dataset.


There is no current position. You can access any row you want by specifying
the row index.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Thanks I will try this,
I'm using the TrueDBgrid of component one and I don't show all the field in
my grid but I need to update the field that I'm not showing so that's why I
want the current position in the Dataset.

Thanks Joel :)

<an*******@discussions.microsoft.com> wrote in message
news:1c****************************@phx.gbl...
Maybe this will help
Me.BindingContext(objdsPrime, "Client").RemoveAt
(Me.BindingContext(objdsPrime, "Client").Position)
-----Original Message-----
Hi!
Its probably a stupid question but how can I retreive

the
column of the current row?
Example: This retreive the value in the ID column for

the
first row. dstForeignKey.Tables(0).Rows(0)("ID")
But I want the current position in the dataset.

Thanks Joel :)
.

Nov 20 '05 #4
Cor
Hi Joel,

For that is the currencyManager, but I don't know how that goes with your
component one datagrid.

But you can have a look for that.

Cor
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Craig | last post by:
How do you set the current row of a dataset? I want to bind a control to a field from the 5th row in a dataset. I fill the dataset, then I want to set the row to the 5th row and then do the...
2
by: Arthur Dzhelali | last post by:
I have a two xml files schema is identical. When I read file into dataset and then bind dataset to the form. These are weather files we are getting from weather service. One file has only...
6
by: Esteban404 | last post by:
I'm trying to create a preview shot of a record being edited, so I want to take the current state and pass it to a instance of a form I have. I've tried to create a dataView and pass that, but it...
4
by: Oscar Thornell | last post by:
Hi, I have a relativley large/complex typed dataset that contains 7-8 tables and some supporting relational tables (lookups) for many-to-many relations. A good exampel would be a dataset that...
2
by: Martin | last post by:
Hi! I'm new to ASP.NET WebApplications and wonder whether I've missed something out when programming it. I'm grateful for any hints to this problem! Thanks very much for your efforts! Martin...
5
by: Craig G | last post by:
im having my first play about with caching a dataset but seem to be having some problems in doing so!! basically i have a dataset which i add to the cache as follows Cache.Insert("myDS",...
9
by: jaYPee | last post by:
I have search a lot of thread in google newsgroup and read a lot of articles but still i don't know how to update the dataset that has 3 tables. my 3 tables looks like the 3 tables from...
3
by: P K | last post by:
Hello, I have a dataset which is already loaded with data in one table. so dataset.tables("data") exists and has data. Now, I have to add another table to the dataset. The source for this...
2
by: Joe | last post by:
Hi I have a dataset with 3 tables and 2 relations Is there a way to when I am at 1 row to tell if there is a relation on that row ??? I have the code hardcoded but try to make it work if the #...
1
by: matt | last post by:
hello, i have a web app that allows users to query our oracle db and produce a dataset of report data. they then have the option to serialize this data and store it in the database. later, then...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
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...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.