Hi, I am a little frustrated by this simple thing.. In powerpack datarepeater how to change color of the line which appears after every record. Kindly look at the attached image for reference. http://i27.tinypic.com/ng4w9g.png Can anyone help me out ? Thanks - Edited bysujit1779 Friday, September 04, 2009 10:42 AMinserting link for reference
-
| | sujit1779 Friday, September 04, 2009 10:41 AM | Hi,
Unfortunately the separator line color is fixed and can't be changed. You can use the BorderStyle property of the ItemTemplate to change the appearance, but not the color.
Hope this helps, Steve Hoag
Microsoft
aka the V-Bee- Marked As Answer byshoagMSFTMSFT, ModeratorSaturday, September 05, 2009 6:23 AM
-
| | shoagMSFT Friday, September 04, 2009 8:38 PM | Hi,
Unfortunately the separator line color is fixed and can't be changed. You can use the BorderStyle property of the ItemTemplate to change the appearance, but not the color.
Hope this helps, Steve Hoag
Microsoft
aka the V-Bee- Marked As Answer byshoagMSFTMSFT, ModeratorSaturday, September 05, 2009 6:23 AM
-
| | shoagMSFT Friday, September 04, 2009 8:38 PM | Thanks shoag, can you suggest any way of doing this using windows API's, like drawing over it, etc ? Didn't find any good example on this on net.. thanks
| | sujit1779 Saturday, September 05, 2009 5:49 AM | Using the System.Graphics namespace would be quite challenging, since the DataRepeater is scrollable and calculating where to redraw the lines would be difficult if not impossible, not to mention the performance implications.
What is your scenario where you require a different line color? Maybe the DataRepeater isn't the best option for your scenario if it's a hard requirement.
We considered making the separator configurable, but it was cut in favor of other features that seemed mote universally important.
Also, I would guess that the default color is set to one of the Windows Desktop settings, so if changing the Windows color scheme is an option you might play around with that. Maybe John Chen or Yunfeng Dong could comment if they are following this thread.
Hth,
Steve Hoag Microsoft aka the V-Bee | | shoagMSFT Saturday, September 05, 2009 6:23 AM | Thanks Shoag. | | sujit1779 Monday, September 07, 2009 3:50 AM |
|