displaying listitems line by line or in a new line

srivalli

Well-known member
Joined
May 4, 2005
Messages
189
Programming Experience
Beginner
i am retreiving the data from the back end in a listbox under some conditions,
if that condition is satisfied, i want to display one column in a listbox.
for the next time, if my given condition is satisfied ,then i want to display the second column in a listbox in next line or a new line
then what do i do
in brief ,
retrieving the data in listbox from the back end in new line every time.
thanks
 
When you set the MultiColumn property of a ListBox to True, all it does is stop the user having to scroll vertically to see all the items. Once the first column is filled, the next item goes in the second column. Once the second column is filled, the next item goes in the third column, and so on. If you change the Height of the ListBox, the items are rearranged accordingly. You have no control over what items go in which columns except by changing the ListBox Height. You cannot start filling a column until the previous column is full. It's just like WordWrap in a TextBox that has no new-line characters in it, except vertically instead of horizontally.
 
based on what i can tell from your description, if you need a column of info displayed in a listbox then later a 2nd column displayed next to it in a listbox then you'll need a 2nd listbox to display the 2nd column

or clear the first listbox and display the 2nd column in the first listbox
 
I've a feeling I've seen multicolumn ListBoxes and/or ComboBoxes that derive from the standard Windows Forms controls posted on some developer sites. I don't remember where, exactly, but my first destination for things like this is usually the Code Project. Then I'd do a Google search.
 
got answer for my query at last

i got the answer for my query

just what i need to do is after searching a word in database,i need ti fill in a listview
and if i want to display line by line
just i need to declare

me.listview1.view=view.list
then the columns will be displayed line by line
thank u for ur responses

jmcilhinney said:
I've a feeling I've seen multicolumn ListBoxes and/or ComboBoxes that derive from the standard Windows Forms controls posted on some developer sites. I don't remember where, exactly, but my first destination for things like this is usually the Code Project. Then I'd do a Google search.
 
Back
Top