Results 1 to 3 of 3

Thread: [RESOLVED] Determine a dataset column data type???

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Resolved [RESOLVED] Determine a dataset column data type???

    Hi Peeps,

    I have a dataset and want to know the data type of a specific column. The GetType returns datacolumn not string or integer etc. Does anyone know how I can do this?

    Thanks for all your help,

    Jiggy!

  2. #2
    Lively Member
    Join Date
    Nov 2009
    Location
    Toronto
    Posts
    103

    Re: Determine a dataset column data type???

    Try this..
    Code:
    Dataset1.Tables.Columns("column").DataType

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: Determine a dataset column data type???

    Thank you for that; I ended up declaring a datacolumn and assigning the column to it and then doing dccolumn.datatype.name.

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width