ISNULL function in Expression while adding new column to datatable.


mydatatable.Columns.Add("ISEmployeePresent", System.Type.GetType("System.Boolean"),"IsNull(Present, -1)" );

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/ZPFUxCAt4sM/14587