Hi Chirs,
I don?t think Mikesdotnetting has misread the question. Base on my understanding, I understand that mycwcgr want to set height style for items in ListBox control, he want to set the style easily like the RowStyle in GridView control.
Actually, the items in ListBox control is the html ?option? element. There are only background-color and color styles that can affect the ?option? element. However, the GridView render to client is the table. Hence we can set the style (RowStyle) easily to effect the ?tr? element.
Just for your reference, I have included the articles for ?option? element and ?tr? element.
OPTION Element | option Object
http://msdn2.microsoft.com/en-us/library/ms535877.aspx
Except for background-color and color, style settings applied through the style object for the option element are ignored. In addition, style settings applied directly to individual options override those applied to the containing SELECT element as a whole.
TR Element | tr Object
http://msdn2.microsoft.com/en-us/library/ms535911.aspx
Sincerely,
Benson Yu
Microsoft Online Community Support
Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.