You can bind to the same collection and might not need Cloning.
or
Some classes provide the Clone Method for you. Like
ArrayList al = new ArrayList();
ArrayList al2 = null;
al2 = al.Clone();
When the Clone Method does not exist then create one yourself.
create an ItemsListCollection object, or what ever collection you want,
then call a Private method you created to populate it from another like
object. That is cloning.
You can use an ArrayList may be to bind to as above.
"David C" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I haven't cloned an ItemList before. How is that done?
>
> "IfThenElse" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> all you need is to clone and use the ItemsList.
>> Or I just don't understand what you want?
>>
>> I had a dropdown list in every row, possibly 25 ( using paging and
>> depending on page size )
>> I just clone and reuse my collectionList that holds my items to the
>> dropdown list
>>
>>
>>
>> "David C" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>I meant me entering them in manually in my 12 DropDownList controls (6 in
>>>read, 6 in edit).
>>>
>>> "IfThenElse" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Assign them to the ItemList, and reuse it over and over again,
>>>> I am not asking your user to manually enter anything.
>>>>
>>>>
>>>> "David C" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>>I have about six columns that will use this so I am looking for a
>>>>>different alternative that manually entered itemlist. I could put it a
>>>>>static SQL table but it seems silly.
>>>>>
>>>>> David
>>>>> "IfThenElse" <(E-Mail Removed)> wrote in message
>>>>> news:(E-Mail Removed)...
>>>>>> If these are all the possible values and will never change then add
>>>>>> manually.
>>>>>>
>>>>>> I am interested to know the overhead using ObjectDataSource
>>>>>>
>>>>>> Hope some more opinionated person ( right or wrong) moves you in some
>>>>>> direction because it might not matter.
>>>>>> caching is good also
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> "David C" <(E-Mail Removed)> wrote in message
>>>>>> news:Op%(E-Mail Removed)...
>>>>>>>I have a FormView that has several columns from a database that need
>>>>>>>to pick (using DropDownList) from a static set of values and text as
>>>>>>>shown below:
>>>>>>>
>>>>>>> value="" text = ""
>>>>>>> value="n/a" text="n/a"
>>>>>>> value="0" text="No"
>>>>>>> value="-1" text="Yes"
>>>>>>>
>>>>>>> Should I use an ObjectDataSource for these or something else? I
>>>>>>> have not used an ObjectDataSource yet, so it is new for me. Thanks.
>>>>>>>
>>>>>>> David
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
|