I have a datatable with One ColumnName \"CustomerID\" with Integer DataType. Dynamically I want to add rows to the DataTable. For that, I had created one DataRow object like:
Int32 Temp = 0; if !(Int32.TryParse(TextBox1.Text,Temp)) DR["CustomerID"] = DBNull.Value else DR["CustomerID"] = Temp