Category - C#.Net
Results 1 - 5 of 104
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add (insert) Columns (DataColumn) to DataTable at runtime using C# and VB.Net.
First a dynamic DataTable object is created and its schema (Table structure and Columns) is defined programmatically. Once the columns are defined, then rows (records) are added to the dynamically generated DataTable.
Here Mudassar Ahmed Khan has explained with an example, how to add (insert) Column with Default Value to DataTable in C# and VB.Net.
When Column is specified a Default Value then if its value is not passed i.e. if the value is NULL or Nothing then in such scenario the Default Value is set for that column.
Here Mudassar Ahmed Khan has explained with an example, how to convert System.Drawing.Image object to Array of Bytes or Byte Array using C# and VB.Net.
Here Mudassar Ahmed Khan has explained with an example, how to add (insert) Serial Number / Row Number / Sequence Number column to DataTable in C# and VB.Net.
There is concept of Identity column in SQL Server Database, in similar way .Net allows us to add a Serial Number / Row Number / Sequence Number column to DataTable in C# and VB.Net.
Here Mudassar Ahmed Khan has explained with an example, how to add (insert) Primary Key column i.e. column with Unique values to DataTable in C# and VB.Net.
There is concept of Primary Key column in SQL Server Database, in similar way .Net allows us to add a Primary Key column i.e. column with Unique values to DataTable in C# and VB.Net.
Results 1 - 5 of 104