Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

WebCombo

How do I set the width of a column of a webcombo, I tried this to see whether the width of the combo changes. The width doesnt change though..

Combo_ApptNm.Columns(0).Width.Pixel(445)



Moiz
0
Moizsaif123
Asked:
Moizsaif123
  • 2
  • 2
1 Solution
 
planoczCommented:

Hi Moizsaif123,
Check your html code, should read something like this...

<asp:combobox id="MyCombo" runat="server" CssClass="standard-text" Width="232px" AutoPostBack="True"></asp:combobox></td>
0
 
Moizsaif123Author Commented:
I am using Infragistics and the webcombo is an infragistics control




Moiz
0
 
liebrandCommented:
Moiz,

I can only get the column to be resized if you have the webcombo databound. If you manually add rows to the webcombo, it does not appear to work. If I were you, I would contact their support -- they are very responsive, and about 99% of the time have an answer (good or bad).

Let me know if you get it figured out.

liebrand
0
 
Moizsaif123Author Commented:
Im sorry I couldnt reply sooner, I found a way to set the width of the combo. instead of having the columns created on runtime, I created them on design time, and the rows are created on runtime. so on design time I manually fixed the width and the height of the column and its framestyle width....




Moiz
0
 
liebrandCommented:
Awesome!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now