Top "Datacolumn" questions

How To Change DataType of a DataColumn in a DataTable?

I have: DataTable Table = new DataTable; SqlConnection = new System.Data.SqlClient.SqlConnection("Data Source=" + ServerName + ";Initial Catalog=" + DatabaseName + ";Integrated Security=…

c# types datacolumn
How do I get column names to print in this C# program?

I've cobbled together a C# program that takes a .csv file and writes it to a DataTable. Using this program, …

c# datatable datarow datacolumn
DataColumn Name from DataRow (not DataTable)

I need to iterate the columnname and column datatype from a specific row. All of the examples I have seen …

c# .net datarow datacolumn
Determine if DataColumn is numeric

Is there a better way than this to check if a DataColumn in a DataTable is numeric (coming from a …

c# numeric datacolumn
changing values of a column in datatable in vb.net

I want to loop through a databale and change the values of a specific column in that datatable. eg: the …

vb.net dataset datarow datacolumn
How to get the SqlType of a column in a DataTable?

I have a DataTable obtained from a SQL DataBase, like this: using (SqlCommand cmd = new SqlCommand(query, _sqlserverDB)) { using (SqlDataAdapter …

c# sqldatatypes datacolumn
DataColumn set a default value

I am trying to set a default value for a DataColumn. How do you set a default value for DataColumn (…

c# datatable datacolumn
R get all categories in column

I have a large Dataset (dataframe) where I want to find the number and the names of my cartegories in …

r categories datacolumn
Add data row to datatable at predefined index

I have a datatable with one column: this.callsTable.Columns.Add("Call", typeof(String)); I then want to add a …

c# wpf datatable datarow datacolumn
datagridview with datasource and combobox

I have a datagridview with a datasource attached to it made of a custom datatable: DataTable: 0 = Dictionary 1 = string 2 = string the …

c# datagridview combobox datacolumn