473,413 Members | 1,757 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,413 software developers and data experts.

Typed Dataset Column Assignment

I am using a typed dataset
I am defenitly doing something 'wrong' but cant quite figure out what it is
with the syntax I am looking for:

Dim APersonName As String = "John Doe"
Dim currentRow As DataRowView = TryCast(PlayerSettingsBindingSource.Current,
DataRowView)

'This assignment works
currentRow("PersonName") = APersonsName

'But since its a typed dataset, I shouldnt have to put "PersonName" in
quotes.
'Something like this:
currentRow.Item(MyDataDS.PlayerSettings.PersonName Column) = APersonsName

I cant quite figure out what the proper syntax is to convert the 'working
line' so I can reference a field in the table without using quotes.

Thanks,

Miro

Sep 10 '08 #1
1 872
Ignore - I got this working.

Cheers`

"Miro" <mi**@beero.comwrote in message
news:uM**************@TK2MSFTNGP02.phx.gbl...
>I am using a typed dataset
I am defenitly doing something 'wrong' but cant quite figure out what it
is with the syntax I am looking for:

Dim APersonName As String = "John Doe"
Dim currentRow As DataRowView =
TryCast(PlayerSettingsBindingSource.Current, DataRowView)

'This assignment works
currentRow("PersonName") = APersonsName

'But since its a typed dataset, I shouldnt have to put "PersonName" in
quotes.
'Something like this:
currentRow.Item(MyDataDS.PlayerSettings.PersonName Column) = APersonsName

I cant quite figure out what the proper syntax is to convert the 'working
line' so I can reference a field in the table without using quotes.

Thanks,

Miro
Sep 11 '08 #2

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

Similar topics

1
by: Ersin Gençtürk | last post by:
I have 2 typed data tables inherited from the same dataset schema One called : table A with an identity column x column x is constrained to be unique. Other one is : table B with an identity...
1
by: Kiran | last post by:
Hi, There is FindByColName() function which is used to find a row in a table based on the column value. for eg. dsEmployees.tblEmployees.FindByFirstName("Kiran") Now my typed dataset...
6
by: Kiran | last post by:
Hi, I am using typed dataset for Employees Table and found a problem, can anyone tell me what's wrong Case 1: Employees Table: ID: int,Not Null,Idendity, Primary col Name:varchar(20),Not...
1
by: Ernie Josefik | last post by:
1. I am using a typed dataset which is being filled from an Oracle database. If any of the columns contain a null value I get an error when accessing the column e.g. ...
5
by: moondaddy | last post by:
I'm caching a dataset in an asp.net session variable to hold a user's data. one data item I need to store is an image the user uploaded. My problem is that I don't know how to get the image into...
4
by: Ben | last post by:
So, at my place of employment, we use a national standard to transmit data between certain applications. This standard consists of a fixed width, flat file 4500-some-odd chars wide that contain...
3
by: Programatix | last post by:
Hi. I'm using a strongly typed dataset and I would like to get the index number of a column from a datarow. Is that possible? I would like to avoid using expression like this, ...
7
by: Bob | last post by:
Hi, I have a typed unbound dataset that is passed to a datahandling class to be filled. The datahandling class fills it from a sproc using an oledbDataAdapter (SQLAnywhere database) The only...
3
by: Mike | last post by:
Hi, I'm delevloping a webservice that returns typed datasets with visual studio 2005. The problem is, that the typed data set in the client app is not the same as in the webservice. If I change...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
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...
0
agi2029
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,...
0
isladogs
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...
0
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...

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.