-
February 22nd, 2012, 02:07 PM
#1
Data Table input
I have a datatable generated whenever i open up a windows form and it loads correctly however, the user needs to be able to change the information within the text boxes and i want the information to save so i create a button on form that when clicked i want it to take in all the current data table information that currently exists compared to the previous information that used to be there. How do i take in the new information that exists in the data table?
I have tried
info.Clear(); //info is a string list
for (int i = 0; i < objectNum.Count - 1; i++)//retakes datatable info
{
for(int a = 0; a < 4; a++)
{
info.Add(d.Rows[a][i].ToString());//should add the row value
}
}
however it isn't working
any help would be great.
Thanks
if you need the .cs or the program please just leave a comment and ill add it
-
February 27th, 2012, 02:06 PM
#2
Re: Data Table input
I found out my problem. Apparently i mixed up my x and y coordinates for the table which screwed up my calculations
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|