|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Obtaining type of column in datatableIf I a column name for a datatable in vb.net 2005 and want to know whether
the column is a char or int how would I ask? E.g., code starts like this. How do I obtain the type of column? MyTable.Rows(0)("MyColumnUnknownIfCharOrInt") Thanks Jeff MyTable.Columns(columnToCheck).DataType
Show quoteHide quote "Jeff" <n***@nothingX.com> wrote in message news:463c7f62$0$16334$88260bb3@free.teranews.com... > > > If I a column name for a datatable in vb.net 2005 and want to know whether > the column is a char or int how would I ask? > > E.g., code starts like this. How do I obtain the type of column? > > MyTable.Rows(0)("MyColumnUnknownIfCharOrInt") > > Thanks > > Jeff > > > -- > Posted via a free Usenet account from http://www.teranews.com >
Fun with products and Expression columns
Delegates and AddressOf .net dll vs vb6 dll Comparing Alphanumeric strings VB.NET compiler does not find type error at compiletime C# - MS Access SQL using OleDbCommand System Menu (On Top) VB.NET 2003 Difference between Dim I as ineteger and Dim I as New Integer Instance of the form How do I create a Serial port listner |
|||||||||||||||||||||||