Results 1 to 4 of 4

Thread: need help in c#

  1. #1
    nadeem111as's Avatar Member BT Rep: +30BT Rep +30BT Rep +30BT Rep +30BT Rep +30BT Rep +30
    Join Date
    Jul 2006
    Location
    palestine
    Age
    38
    Posts
    537
    i used to program in java ,vb.net
    and recently i try to learn c# and every thing is ok because it has some similarities with java
    but i face problem in dataset object so here what i want
    i want to determine a value of column in specific row in the data set
    in vb i used to do that :
    dataset.tables(0).rows(0).items(0)
    but in c# i think it is diffrent so if any one can help please put the statement that give me the same result
    thanks
    can you support me and visit my blog at:
    waytoubuntu.blogspot.com

  2. Internet, Programming and Graphics   -   #2
    Snee's Avatar Error xɐʇuʎs BT Rep: +1
    Join Date
    Sep 2003
    Location
    on something.
    Age
    44
    Posts
    17,985
    dataset.tables[table name or index].rows[index][column name or index]

    I think.


    EDit: You might want to wrap it in a try and check that the dataset has values, so it doesn't take a dive.
    Last edited by Snee; 06-02-2007 at 07:56 PM. Reason: Index is a better word than position.

  3. Internet, Programming and Graphics   -   #3
    nadeem111as's Avatar Member BT Rep: +30BT Rep +30BT Rep +30BT Rep +30BT Rep +30BT Rep +30
    Join Date
    Jul 2006
    Location
    palestine
    Age
    38
    Posts
    537
    thanks man
    can you support me and visit my blog at:
    waytoubuntu.blogspot.com

  4. Internet, Programming and Graphics   -   #4
    if you dont have give the table name in the dataset, than that could be done while loading the data....

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •