Need help with Style conversion from Style object to Style key/value collection.

K

Ken Varn

I am writing a custom control that derives from the DataGrid control. I
would like to apply SelectedItemStyles and ItemStyles for use in my derived
code to sub-controls that my extension creates.

The problem I am having is that I need to extract all of the Styles from the
SelectedItemStyles and apply them to the WebControl.Style collection, but
the two seem incompatible. The WebControl.Style object is a collection of
key/value pairs, whereas the SelectedItemStyles is of type TableItemStyle
(derived from Style type). There seems to be no way to convert a Style
object to a collection of key/value pairs for placing into a
WebControl.Style property. Is there some piece of the puzzle that I am
missing here? Please help.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top