DataTable.Select question

Results 1 to 2 of 2

Thread: DataTable.Select question

  1. #1
    Join Date
    Dec 1969

    Default DataTable.Select question

    Hi all,<BR><BR>I want to be able to run an equivalent of:<BR>"Select Disctinct myIdColumn from myTable"<BR><BR>on a datatable. Is it possible?<BR><BR>I tried the obvious such as :<BR>mydataTable.Select("disctint myIdColumn","myIdColumn");<BR><BR>Needless to say it didnt work. I dont seem to be able to find anything about this kind of functionality in the literature.<BR>Is it possible that a seemigly important feature such as this<BR>would be missing from DataTable implementation?<BR><BR>Thanks for any help in advance.<BR><BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: DataTable.Select question

    DataTable.Select() takes a string expression. The expression&#039;s form is the same as DataColumn.Expression(). which can be found here:< BR><BR>I do not see "DISTINCT" as a legal key word in this doc.

Posting Permissions

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