Uttam Kumar Kotdiya wrote: > We can make 2 column in Listbox component by setting its column property > but how we can add/retrieve the values in/from second column.
Actually the "Columns" property is a bit of a misnomer, what it does is Wrap the list of items to make more of them visible (assuming the listbox is made wider than the entries), the logical list order remains the same. There's an option to have columnar layout in a listbox by using the TabWidth property, which will spread things out based on tabs in the item text; but, again, this doesn't provide "columns" per se, there's still only a single list of items. Using that you COULD parse the selected item and figure out the "column" based on the tabs; but there's no direct access to separate columns in the sense it sounds like you mean. For that you'll probably want to look at TStringGrid or TListView. HTH Stephen Posey [EMAIL PROTECTED] _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

