add column to datatable with default value c#
  • how can i add new column in datatable with contain default value using c# code.
  • 1 Comment sorted by
  • use below code for add column in datatable

     DataColumn newColumn = new DataColumn("Rate", typeof(System.Decimal));
                newColumn.DefaultValue = 0.00;

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week