在下面的代码中,我得到colType了该类型的代码.但是,我如何将该数字转换为实际类型?谢谢!!
for (int j = 0; j < dvColumns.Count; j++)
{
// Get the name of the column.
drvCols = dvColumns[j];
colName = drvCols.Row.ItemArray[3].ToString();
// Get columns data type code and save it off.
colType = Convert.ToInt32(drvCols.Row.ItemArray[11]);
}
Run Code Online (Sandbox Code Playgroud)