Listbox with DrawMode=OwnerDrawVariable, but i want Multicolumn=true.

15 pts.
Tags:
.NET
C#
ListBox
VB.NET
Hi all, i have problem with the ListBox. i want to set the item height of the item inside the ListBox. so i set DrawMode=DrawMode=OwnerDrawVariable, but in the same time i want the item displayed in multicolumn. The problem is there is not multicolumn when i set DrawMode=DrawMode=OwnerDrawVariable set. Thanks for reading this.
ASKED: October 7, 2008  1:51 AM
UPDATED: October 9, 2008  3:46 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

I would think you would draw a row of colums as a single line, including your own separators, in the DrawItem method and set the height to max height of each individual column entry for a given row in MeasureItem. If column entries are not supposed to line up, ie can have different heights in the one row, it might be simplest to use multiple list boxes with tied scrolling.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • MrHulk
    If i do a single row three column with separator between it, i can not have multi- selection. if i do that, when i selected a row, the selected row will highlight all column in that row. i dont want that, what i need is multicolumn and multiselection with set itemheight. sorry if i sound like too demanding. English is not my everyday language, so the word i choose may be sound offensive.LOL.
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following