How do I get the width of a column using Type Datasets?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I get the width of a column using Type Datasets? I don't want to know
the length of the data in the column, I want to know the width of the column.
In my code, if the column width is 50 characters, but a string with 55
characters tries to insert then I get runtime error. So, I want the width of
the column so I can cut out that number of (50) characters from the string.
 
Armin,

AFAIK is only when you create the strongly dataset using the database tables
and you have set in the SQL servercolumn a limit.

Cor
 
Mike,

Armin let me think about your qeustion. If you databind such a column to by
instance a textbox you cannot even put in more than than length.

Cor
 
Cor Ligthert said:
Armin,

AFAIK is only when you create the strongly dataset using the
database tables and you have set in the SQL servercolumn a limit.

Hmm, I don't completely understand. The server column does have a limit.


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top