>>>>
>>>>Off the top of my head, you probably could use:
>>>>
>>>>for(Control sometype ...
>>>>
>>>>or
>>>>
>>>>for(Object sometype...
>>>>
>>>>
>>>>
>>>>John
>
>
>That's what I said,
Not quite. You're suggestion was to enumerate the KeyValuePairs and extract the value. Essentially:
foreach (KeyValuePair<string, Control> kvp in DataControls)
{
string s = kvp.Value.GetType().Name;
}
I suggested using the SortedList.Values collection directly......
Both would work - mine was shorter :-}
> but I guess I didn't understand the question based on Bob's reply.
I, like you, thought the requirement was simply to determine the type of each control in the list......