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

I need to get the value of DataTable

string val = TEXTDT[var.name]; // The answer from text file of

Where TEXTDT is a datatable, with column names var.name

I need to get the value somehow.

TEXTDT[var.name].var.no; I am not sure how to do this/

var.name is the row name

index the row using var.no


Here is the Table called targetTable


QUEST S_DAT NAME INTRO PART => These are the col using var.name
000001 20060101 MATT 01 1 => These are the rows using var.no
000002 20060101 SHELL 01 2
Sep 27 '06 #1
1 6258
string val = TEXTDT[var.name]; // The answer from text file of

Where TEXTDT is a datatable, with column names var.name

I need to get the value somehow.

TEXTDT[var.name].var.no; I am not sure how to do this/

var.name is the row name

index the row using var.no


Here is the Table called targetTable


QUEST S_DAT NAME INTRO PART => These are the col using var.name
000001 20060101 MATT 01 1 => These are the rows using var.no
000002 20060101 SHELL 01 2



txtPassword.Text = objDtsetPersonal.Tables[0].Rows[0][1].ToString();
strTempPwd = objDtsetPersonal.Tables[0].Rows[0][1].ToString();
txtFName.Text = objDtsetPersonal.Tables[0].Rows[0][2].ToString();
txtLName.Text = objDtsetPersonal.Tables[0].Rows[0][3].ToString();




Regards,

R.Ganesan
Sep 29 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mike | last post by:
Hey guys I am pulling my hair out on this problem!!!!! Any help or ideas or comments on how to make this work I would be grateful! I have been working on this for the past 4 days and nothing I do...
2
by: Joey Liang via DotNetMonster.com | last post by:
Hi all, I am new in asp.net, i encounter some problems in using drop down list and datagrid. I have manage to bind the data into datagrid but i wanted to bind the data into the datagrid accroding...
6
by: Joey Liang via DotNetMonster.com | last post by:
Hi all, I have a drop down list which store all the different brands of product.When i selected the particular brand from the drop down list, it will display all the products with the selected...
5
by: manmit.walia | last post by:
Hello All, I am stuck on a conversion problem. I am trying to convert my application which is written in VB.NET to C# because the project I am working on currently is being written in C#. I tried...
3
by: Paul | last post by:
Hello, and thanks for listening. I have a Stored Procedure as follows: -- PROCEDURE . -- Add the parameters for the stored procedure here @UserName Nvarchar (50)
6
by: Niyazi | last post by:
Hi all, What is fastest way removing duplicated value from string array using vb.net? Here is what currently I am doing but the the array contains over 16000 items. And it just do it in 10 or...
1
by: macupryk | last post by:
I need to get the value of a datatable. _dtProjectQuestion, ProjectQuestionToDatabase.ProjectResponseandRespondentToDB(_dtProjectQuestion, intId, Convert.ToInt32(var.no)); Error 1 ...
0
by: Maart_newbie | last post by:
Hi all, I've got a question about returning the value of a pk-column to a DataTable after inserting a row (via a data-adapter) using MySql5. Here is the SQL and code concerned: ...
3
by: C#Schroeder | last post by:
I am trying to add an email and 2 phone numbers to a DataTable that has already been populated in my window application. How do I call the DataSet with the information in it and update the users...
6
by: cj | last post by:
If I'm sitting on a datarow for a customer and want to change his phone number only if it's blank what would I write? if myDr("phone")= "" then myDr("phone") = "mphone" endif...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.