Hi all :wave:
I am getting some problem for changing the type of the data column.
Just check the code it is not working for me.
C# Code:
DataColumn dataColumn=new DataColumn(); dataColumn.DataType = GetType[String];
Printable View
Hi all :wave:
I am getting some problem for changing the type of the data column.
Just check the code it is not working for me.
C# Code:
DataColumn dataColumn=new DataColumn(); dataColumn.DataType = GetType[String];
This could never work:Square brackets are used to index arrays and collections. Is GetType an array or collection? No it isn't. Nor is GetType a statement in C#. In VB it would be:Code:dataColumn.DataType = GetType[String];
In C# it's:vb.net Code:
dataColumn.DataType = GetType(String)C# Code:
dataColumn.DataType = typeOf(String);
Thanks sir