locked
How to SELECT just the first field form a column? RRS feed

  • Question

  • I want to SELECT just the first field form the column using query code!

    Please help!!!

    Thursday, August 8, 2013 8:07 AM

Answers

  • If you have dt as a DataTable

    dt.Rows[0][0];

    the first index is for row and second is for column of your table.

    • Marked as answer by Eason_H Thursday, August 15, 2013 4:48 AM
    Monday, August 12, 2013 9:15 AM

All replies

  • From where do you want to select the column, elaborate your issue.

    Thanks & Regards
    Syed Amjad Sr. Silverlight/WPF Developer,
    yahoo : syedamjad6736@yahoo.com, skype : syedamjad.0786.
    Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

    Thursday, August 8, 2013 8:49 AM
  • Hi OVlad,

    How's it going? Do you have any updates about the previous issue?

    Eason_H
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 12, 2013 3:16 AM
  • If you have dt as a DataTable

    dt.Rows[0][0];

    the first index is for row and second is for column of your table.

    • Marked as answer by Eason_H Thursday, August 15, 2013 4:48 AM
    Monday, August 12, 2013 9:15 AM