One way to handle the typing into the cells of a flexgrid is via the use of an edit box. Create a text box (txtGrid) on the form, and set the visible property to false.
Activate and position the text box when you click in the grid:
Private Sub grdGrid_Click()
Dim lInt_Left as Integer
Dim lInt_Top as Integer
Dim lInt_RowID as Integer
Dim lInt_ColId as Integer
This should get you started. You can use this same technique with combo boxes as well
Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
Depending on how eligant you want to get, you can also use an input box. I do this in the flexgrid's enter cell event.
kinda like this:
private sub flexgrid_EnterCell()
dim strString as string
strSring = inputbox("Please enter something"
'put some string editing stuff here like isnumeric, isdate, 'or if it is blank.
'if all is well set the flexgrid textmatrix property to the 'value of string (strString)
flexgrid.textmatrix(flexgrid.row, flexgrid.col) = strString
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.