8
Answers

How can i somehow wrap the long string item in my Dropdownlist

raven daniel

raven daniel

13y
8.2k
1
i just need a pointer or reference to something im looking for:
I have a dropdownlist, one of the items are very long so if i have to select that item, it widens my dropdownlist and pushes other controls to the right.

1)Is there a way to wrap the text? or get around it? or
2)Is there a way i can add a <br/> to that one item?

I cant widen the box, and i cant let the item's text be cut, by giving the box a fixed width.
Thank you for your time in advance.
Answers (8)
0
Yonatan Sion

Yonatan Sion

NA 2 0 13y
if you're willing to consider 3rd party, The following tool will do it for you:

http://nobhillsoft.com/Columbo.aspx
0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 13y
This not a simple task, so no ready made codes to share. You can also try this with LINQ to EXCEL.
0
gold spoon

gold spoon

NA 3 8.4k 13y
Please post code..
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 13y
Use the Excel object model (also known as Excel Interop) to read each spreadsheet.

Create a DataSet which is an in-memory copy of data; you do not need to write the data to a database. Create two tables in the DataSet, one for the data for each spreadsheet. Use a SQL query to create a union. Use the result of that to create the new spreadsheet.

Alternatively you can read the data of each of the two spreadsheets into collections and then use LINQ to create the union.
Next Recommended Forum