home / software / tips and tricks / How to add default value for a DataColumn of a DataTable?

How to add default value for a DataColumn of a DataTable?

Updated:  10/20/2011 11:10 AM
Author:  Shiju Mathews

Status:    Resolved.


We can define default values for DataColumn ofa DataTable by using the "DefaultValue " property of the DataColumn.



The DataColumn 'IsLive' will use the default value 'true'.
Tags: How to add default value for a DataColumn of a DataTable?
Updated on: December 2024