PC Review


Reply
Thread Tools Rate Thread

Changes to MaxLength being ignored

 
 
Don
Guest
Posts: n/a
 
      31st Jan 2005
I have a dataset with data retrieved from an Access2K database and I am
trying to change the MaxLength property of one of the text fields. The code
executes fine (e.g. myDataset.Tables(0).Columns(x).MaxLength = 50), but the
value of MaxLength doesn't change! Can anyone explain why this is happening
and how I can change the MaxLength property?

- Don


 
Reply With Quote
 
 
 
 
Mona
Guest
Posts: n/a
 
      31st Jan 2005
Hi Don,

If you create a strongly typed DataSet, the DataColumn.MaxLength property is not set.

You can refer to the following link to know more about it and to resolve it.
[BUG: DataColumn.MaxLength Property Is Not Set for Strongly Typed DataSets]
http://support.microsoft.com/default...B;EN-US;317175

HTH

Mona

"Don" <(E-Mail Removed)> wrote in message news:rhrLd.230944$8l.48134@pd7tw1no...
>I have a dataset with data retrieved from an Access2K database and I am
> trying to change the MaxLength property of one of the text fields. The code
> executes fine (e.g. myDataset.Tables(0).Columns(x).MaxLength = 50), but the
> value of MaxLength doesn't change! Can anyone explain why this is happening
> and how I can change the MaxLength property?
>
> - Don
>
>

 
Reply With Quote
 
Don
Guest
Posts: n/a
 
      31st Jan 2005
My problem is not that the MaxLength property doesn't contain the actual
maximum length of the field as defined in the database. My problem is that
once I've retrieved a dataset with this information, I cannot change the
value of it.


>"Mona" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>Hi Don,
>
>If you create a strongly typed DataSet, the DataColumn.MaxLength property

is not set.
>
>You can refer to the following link to know more about it and to resolve

it.
>[BUG: DataColumn.MaxLength Property Is Not Set for Strongly Typed DataSets]
>http://support.microsoft.com/default...B;EN-US;317175
>
>HTH
>
>Mona
>
>"Don" <(E-Mail Removed)> wrote in message

news:rhrLd.230944$8l.48134@pd7tw1no...
>>I have a dataset with data retrieved from an Access2K database and I am
>> trying to change the MaxLength property of one of the text fields. The

code
>> executes fine (e.g. myDataset.Tables(0).Columns(x).MaxLength = 50), but

the
>> value of MaxLength doesn't change! Can anyone explain why this is

happening
>> and how I can change the MaxLength property?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
maxLength Sudhesh Microsoft VB .NET 0 1st Oct 2005 03:50 AM
xsd:maxLength Sudhesh Microsoft Dot NET 1 30th Sep 2005 10:20 PM
xsd:maxLength Sudhesh Microsoft VB .NET 1 30th Sep 2005 10:20 PM
setting maxlength sql Microsoft Dot NET 2 27th Apr 2005 08:12 AM
textbox maxlength =?Utf-8?B?TWFyayBTb25uaWVy?= Microsoft Dot NET Framework Forms 8 5th Nov 2004 07:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 PM.