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

    select on dataTable

    how can i select some fields from dataTable (in dataSet)
    i tried someting like-
    ds.Tables(0).Select(String.Format("Field={0}",ColumnName))
    but its not working
    any idea?
    thanks in advanced

  2. #2
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: select on dataTable

    You are missing '...'
    Code:
    ds.Tables(0).Select(String.Format("Field='{0}'",ColumnName))
    string values in SQL are between apostrophes.

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