I need to add three different variable which is of different datatype under one column name in datatable
Hi @sruthesanju ,
Why you required to know the variable type ? Any specific reason ?
You can directly assign any value like
row(“columnName”) = value.ToString
I will be getting two different value one as string and another as int I am unable to store both in same variable.
Convert integer value to string as Cstr(intValue).
depending on your datatypes (skalar, complex) and your value seperation (e.g. space, comma)
you can store multiple values within a col.
e.g.
row(“columnName”) = String.Format("{0} {1} {2}", myStringVar , myIntVar.toString, myOtherVar.toString)
I am getting the below error index(zero based) must be greater than or equal to zero and less than the size of argument list
please share a screenshot of your implementation on this part with us. Thanks