Drop dow list format

  • Thread starter Thread starter Phil Barber
  • Start date Start date
P

Phil Barber

I am populating a drop dow list for a recordset using a reader:
while(DR.Read())
CmbConv.Items.Add(DR["Field1"].ToString() + " "+DR["Field2"].ToString());

Is there a way to format the drop down list so that it would appear to have
two columns?
Phil
 
Is there a way to format the drop down list so that it would appear to
have
two columns?

Not exactly. An HTML Select object does not have that functionality. You
could, however, fake it with a complex combination of divs and JavaScript.
I've never done it before, so I can't give you any code offhand. However, it
shouldn't be hard to figure out, assuming a good knowledge of JavaScript and
DHTML.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Phil Barber said:
I am populating a drop dow list for a recordset using a reader:
while(DR.Read())
CmbConv.Items.Add(DR["Field1"].ToString() + " "+DR["Field2"].ToString());

Is there a way to format the drop down list so that it would appear to have
two columns?
Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top