DataColumn and DataTable
-
Hello I´m working with DataTAble and DataColumns. I would like to know how can i put the size of a column THat is, now all the columns has the same size in the tables and i would like to know how can i create of differente sizes.
You can use the MaxLength property of the DataColumn object (for text columns only)
-
Hello I´m working with DataTAble and DataColumns. I would like to know how can i put the size of a column THat is, now all the columns has the same size in the tables and i would like to know how can i create of differente sizes.
When you state size I am guessing that you mean string length. That is achieved by... DataSet DS = new DataSet(); //Populate the dataset with tables and columns //You can use column names, insead of index, if you have named them DS.Tables[0].Columns[0].MaxLength = 20;