By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,095 Members | 1,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,095 IT Pros & Developers. It's quick & easy.

Resize problem in VSFlexGrid

100+
P: 123
Hi,

I have kept combobox in VSFlexGrid. Now I want to make height and width of combo box to same height and width of that cell. How to do that?

kindly help me soon if you know the asnwer.
Apr 2 '07 #1
Share this Question
Share on Google+
3 Replies


hariharanmca
100+
P: 1,977
Hi,

I have kept combobox in VSFlexGrid. Now I want to make height and width of combo box to same height and width of that cell. How to do that?

kindly help me soon if you know the asnwer.

Go to that EnterCell event

and use

Expand|Select|Wrap|Line Numbers
  1. cmbName.Top = grdName.CellTop
  2. cmbName.Width = grdName.CellWidth
  3. cmbName.Height = grdName.CellHeight
Apr 2 '07 #2

vijaydiwakar
100+
P: 579
Hi,

I have kept combobox in VSFlexGrid. Now I want to make height and width of combo box to same height and width of that cell. How to do that?

kindly help me soon if you know the asnwer.
vsflexhave col as inbuilt intity
just use it
Apr 2 '07 #3

100+
P: 123
Go to tat EnterCell event

and use

Expand|Select|Wrap|Line Numbers
  1. cmbName.Top = grdName.CellTop
  2. cmbName.Width = grdName.CellWidth
  3. cmbName.Height = grdName.CellHeight
After executig above code, I am getting an error Message "Height property is read only". I can not change the height of combobox.

Plz suggest me.
Apr 2 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.