CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2012
    Posts
    7

    Question 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

  2. #2
    Join Date
    Feb 2012
    Posts
    7

    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
  •  





Click Here to Expand Forum to Full Width

Featured