DataTable already exist. Need to add data to DataTable

C

C#Schroeder

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 row in the
Personal(DataTable)?

Thanks
Tony
 
S

sloan

Use

DataSet.MyTableName.Select ( filter ) to find the row(s) you're interested
in.

DataSet.Employee.Select ("EmpID=123")

is an example.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Frankly I Do not understand your question, if you have a DataTable you add
data to it like:

DataRow row = your_DataSet.Tables["TableNAme"].NewRow();
row["Column1"] = "your value";

Post back if this is not what you asked
 
C

C#Schroeder

On Mar 26, 12:53 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.com> wrote:
Ok I have a windows application that has multiple forms. On the first
form I populate the PersonalInformation DataTable with First Name,
Last Name, Address, City, State, and Zipcode. The user then presses
the next button and can enter Email Address and a Phone Number for the
user. I want this information to be placed in the PersonalInformation
DataTable. I am trying to figure out how to call the
PersonalInformation DataTable with all the information that was
entered on the first screen and update it with the Email and Phone
Numbers for the person.

Right now I can save the first part of this with the First Name, Last
Name, etc. I just don't know how to call the DataTable back up so I
can place the Email Address and Phone Numbers in it.

I hope this will help you to better understand my problem

Hi,

Frankly I Do not understand your question, if you have a DataTable you add
data to it like:

DataRow row = your_DataSet.Tables["TableNAme"].NewRow();
row["Column1"] = "your value";

Post back if this is not what you asked




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 row in the
Personal(DataTable)?
Thanks
Tony- Hide quoted text -

- Show quoted text -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top