locked
Query RRS feed

  • Question

  • How to write a C# statement in order to find out whether a column named "OrderId" exist in a datatable dt ?

    Wednesday, August 8, 2007 5:32 PM

Answers


  • bool isOrderIdThere = dt.Columns.Contains("OrderId");

    -mwalts
    Wednesday, August 8, 2007 5:41 PM

All replies