Answers for "C# Table"

4

C# create DataTable

DataTable dt = new DataTable(); 
dt.Clear();
dt.Columns.Add("Name");
dt.Columns.Add("Marks");

DataRow _ravi = dt.NewRow();
_ravi["Name"] = "ravi";
_ravi["Marks"] = "500";
dt.Rows.Add(_ravi);
Posted by: Guest on August-20-2020
0

C# Table

String.Format("|{0,5}|{1,5}|{2,5}|{3,5}|", arg0, arg1, arg2, arg3);
Posted by: Guest on September-22-2021
-2

how to make a datatable in c#

Datatable NameHere = new DataTable();
NameHere.Rows.Add("Whateveryoudliketoaddintorstringoranything");
Posted by: Guest on May-22-2020
-1

Table C#

int[] tableName = new int[4]; // Create a int table of 4 entity.
int[] tableName2 = {10, 20, 30, 40}; // Create a int table with undefined number of entity, this one gonna have 4 : (10, 20, 30, 40).

tableName2[0] = 10;
tableName2[1] = 20;
Posted by: Guest on March-31-2021

Browse Popular Code Answers by Language