DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Use ISNULL Function In Expression For Creating New Column In Datatable
ISNULL function in Expression while adding new column to datatable.
mydatatable.Columns.Add("ISEmployeePresent", System.Type.GetType("System.Boolean"),"IsNull(Present, -1)" );