PC Review


Reply
Thread Tools Rate Thread

DataRepeaters in virtualmode

 
 
Huggyboy101
Guest
Posts: n/a
 
      14th Nov 2008
I have been trying to use datarepeaters in virtualmode for displaying lots of
data and have come across some 'interesting features'

1) no ItemValueNeeded event is generated if the control in the template is a
button

2) in the ItemValueNeeded event if a e.Control.Enabled = False (or indeed
true) is done on a textbox the results are pretty random, changing when you
scroll up and down the data but e.Control.visible= False (or true) works
fine.
The pretty shoddy workaround i am about to do to get my application working
is to have a label & a textbox with the same data in them and making the
label visible & textbox invisible when i dont want any input & the other way
around when i do

3) (... and this is the really irritating one) there is an example in the
datarepeater member class documentation for itemdraw event (pasted below)
that changes the colour on every other item which works fine with less than a
page but on multipages seems to work randomly (mostly blue it seems)
Private Sub DataRepeater1_DrawItem(ByVal sender As System.Object, ByVal
e As Microsoft.VisualBasic.PowerPacks.DataRepeaterItemEventArgs) Handles
DataRepeater1.DrawItem
If (e.DataRepeaterItem.ItemIndex Mod 2) <> 0 Then
' Apply the secondary back color.
e.DataRepeaterItem.BackColor = Color.AliceBlue
Else
' Apply the default back color.
DataRepeater1.ItemTemplate.BackColor = Color.White
End If
End Sub

4) On the bright side - all the data is being handled correctly which
suggests it isnt my ItemValueNeeded code that is at fault

Looking on the internet has proved pretty fruitless - i have only found 1
person who has found the same problems (William Stacey in this discussion
group) and nobody has responded (except for me)
I thought the whole idea of datarepeaters/virtualmode is to handle lots of
pages of data more flexibly & efficiently - any ideas of workarounds or a
different control i can use?

Thanks in anticipation
 
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
ListView in VirtualMode =?Utf-8?B?Y2ps?= Microsoft Dot NET Framework 7 20th Oct 2006 04:22 AM
VirtualMode for DataGrid arjunsingri Microsoft Dot NET Compact Framework 2 5th Oct 2006 03:24 PM
Using ListView's VirtualMode gene kelley Microsoft VB .NET 4 27th Jul 2006 12:47 PM
2 datarepeaters on same page suzy Microsoft C# .NET 1 14th Apr 2004 01:33 PM
2 datarepeaters on same page suzy Microsoft ASP .NET 1 14th Apr 2004 01:33 PM


Features
 

Advertising
 

Newsgroups
 


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