473,385 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

MSFlexGrid Controlling

I generally using one TextBox control moving from Cell to Cell into the MSFlexGrid Control to access different data type values from user.
How can I use DTPicker Control, ComboBox Control, OptionButton, CheckBox Controls in several column into the MSFlexGrid Control.? or whether there is any grid control or third party utilities which will allow me to generate easer grid entry form which will support other controls attached with the columns?
Jul 30 '07 #1
3 3382
hariharanmca
1,977 1GB
I generally using one TextBox control moving from Cell to Cell into the MSFlexGrid Control to access different data type values from user.
How can I use DTPicker Control, ComboBox Control, OptionButton, CheckBox Controls in several column into the MSFlexGrid Control.? or whether there is any grid control or third party utilities which will allow me to generate easer grid entry form which will support other controls attached with the columns?
For this you have to use control array. if you explain what is you requirement then we can give some other solutions.
Jul 30 '07 #2
pureenhanoi
175 100+
I generally using one TextBox control moving from Cell to Cell into the MSFlexGrid Control to access different data type values from user.
How can I use DTPicker Control, ComboBox Control, OptionButton, CheckBox Controls in several column into the MSFlexGrid Control.? or whether there is any grid control or third party utilities which will allow me to generate easer grid entry form which will support other controls attached with the columns?
VideoSoft FlexGrid Control allow using checkbox, combobox, picture and text on cells. With dtpicker, maybe you must do manually by moving it from cell to cell. See www.videosoft.com for more details.
Jul 30 '07 #3
Kabyr
29
Hi,

I got this somewhere when i had same issue

Place the control on your form. Keep it somewhere it will not be visible at run time. say a combo box: Name is CboData. Your Flex Grid is MSFG

To place it in the grid...

add the following code to the click ecent of the FlexGrid:

CboData.Visible = False 'First hide the control

'Myy grid has 10 cols
If MSFGR.ColSel >= 2 And MSFGR.ColSel <= 9 ' cols 2 - 9 are cols i intend to edit.
'Resize the control to the grid cell size if neccesary
CboData.width = MSFGR.CellWidth 'Pick Cell width
CboData.Left = MSFGR.CellLeft + MSFGRoster.Left 'Position to Cell Left
CboData.Top = MSFGR.CellTop + MSFGRoster.Top 'Position to Top of Cell
'Take the curent value of cell and place in Cbo.text
CboData.Text = MSFGR.Text
Show the control
CboData.Visible = True
End If

when done, you can now place the value of the control into the cell
MSFG.text = cbodata.text ' You know where to get that from

It means the control will show only when you click on the cell.
Jan 22 '08 #4

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

Similar topics

0
by: Ed | last post by:
Hi, I am using an MSflexgrid in my c# code. I have a strange problem. My MSflexgrid has only 1 column. Now the data in that column can be long. WIth just 1 column the MSflexgrid does not show...
1
by: PVS | last post by:
Hi, I am new to VC++ 7.0. I want to use MSFlexGrid in my dialog based MFC project in VC++ 7.0 (in VS ..NET IDE). I added the MSFlexGrid control into my resource editor toolbox and I dragged and...
0
by: Martin K | last post by:
Hello all..thanks for everyone's advice regarding my SHBrowseForFolder API problem, I was able to put together a public class that runs great! But I have another migration headache regarding the...
1
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
1
by: schapopa | last post by:
Hi, I have a MSFlexGrid control on the SSTab and now I am trying to make it editable. I got some example on the net that explains how to achive that. So I have a text box that appears over the...
2
by: Ben | last post by:
after I migrated to dotNet, migration wizard transferred over my vb6.0 Msflexgrid activex com as a dll, it putted it in my bin dir as AxInterop.MSFlexGridLib.dll. however, I can't use this control...
1
by: zoneal | last post by:
Hi, I am involved in the process of migrating vb(6.0) application to vb.net. My application contains only vb controls namely MSFLEXGRID. I want to migrate my application to vb.net completely...
1
by: Steven | last post by:
I develop the application which contains MSFlexGrid to display data. When I try to fill the grid with the text data, I want to adjust the column width so that the width is adjusted to the maximum...
5
by: Ishmael | last post by:
Hi Is Been a 3 Yrs Now (I Still trying to do this) Please help me to do this with Visual Basic 6.0 using Msflexgrid Let say you are the Principal . You have 10 educators and 5 class (Grades)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.