Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

datatype

Add column clone to data table with different datatype in c#
Tuesday, 31 January 2012 09:39
Change datatype of new column. Following code will create new column total with int32 datatype and will automatically cast values of subtotal column.


dt.Columns.Add("total", System.Type.GetType("System.String"),"Convert(Subtotal, 'System.Int32')" );

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/xcPgp4sh29Y/14585

 


Taxonomy by Zaragoza Online