Make a new column in datatable c# using existing columns or hardcode values, using expression

Filed in .Net Leave a comment

Merge two or more columns in c# datatable

ds.Tables[1].Columns.Add(“NEWCOLUMNNAME”, typeof(System.String), “COL1+ ‘-’ + COL2″);

You can make any complex sql expression.

TOP