IF construct in expression while adding new column to datatable


mydatatable.Columns.Add("CustomerTypeBasedOnExpenditure", System.Type.GetType("System.String"),"IIF(customertotal>1000, 'Good customer', 'Bad Customer')" );

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/c7WxjRQoRkY/14589