How to change DataTable columns order

前端 未结 6 945
旧时难觅i
旧时难觅i 2020-12-02 07:46

How to change Datatable columns order in c#.

Example:

am created sql table type order is Qty,Unit,Id but in program DataTable order is Id,Qty,Unit. In code B

6条回答
  •  臣服心动
    2020-12-02 08:13

    We Can use this method for changing the column index but should be applied to all the columns if there are more than two number of columns otherwise it will show all the Improper values from data table....................

提交回复
热议问题