Tuesday, 13 October 2020

Adding Datatble column at specific Index in C#

  DataColumn Col = dt.Columns.Add("ColName", System.Type.GetType("System.Boolean"));

                Col.SetOrdinal(0);// to put the column in position 0;

No comments:

Post a Comment