PC Review


Reply
Thread Tools Rate Thread

DataRepeater, changing control properties

 
 
William Stacey
Guest
Posts: n/a
 
      8th Oct 2008
1) I can change things like "e.DataRepeaterItem.BackColor" in the DrawItem
event, but can't change things like button visibility. When you change
visible, you get random results on what is visible and what is not. Where
do you hook in to do things like that.

2) What is the pattern for using different templates in the ItemTemplate.
Say you want different controls displayed depending on the data?

tia

 
Reply With Quote
 
 
 
 
Huggyboy101
Guest
Posts: n/a
 
      12th Nov 2008
Had the same problems as you - with virtualmode set to true and handling the
itemvalueneeded event noticed that no event is generated if the item is a
button - presumably a button is not regarded as a valid object for a dataitem.

Replacing the button with a hyperlink gets over this (a itemvalueneeded
event is generated) but setting the enabled to false doesnt work on the last
'page' of a long list - however scrolling up and down sorts out the screen
display.

I had thoughts that setting the datarepeater to the top of the list might
solve the problem but i havent discovered how to do that.

If anyone has a work around / fix for this i would be very grateful.

"William Stacey" wrote:

> 1) I can change things like "e.DataRepeaterItem.BackColor" in the DrawItem
> event, but can't change things like button visibility. When you change
> visible, you get random results on what is visible and what is not. Where
> do you hook in to do things like that.
>
> 2) What is the pattern for using different templates in the ItemTemplate.
> Say you want different controls displayed depending on the data?
>
> tia
>

 
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
VB Powerpack and DataRepeater Control? Anthony P. Microsoft VB .NET 1 23rd Feb 2011 04:18 PM
Changing Control Properties =?Utf-8?B?V2FsaWQgQmFoZ2F0?= Microsoft Access 3 18th May 2007 09:37 AM
Changing the properties of a control =?Utf-8?B?SnVzdGluODM3MTY=?= Microsoft Access Form Coding 4 7th Feb 2007 06:04 PM
Changing Control Properties Frank Wagner Microsoft Access Form Coding 2 22nd Dec 2004 01:51 AM
DataRepeater Control Arsalan Microsoft VB .NET 2 12th Sep 2004 04:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:53 AM.