Editing cell using grid32.ocx

Is there a way to edit individual cells using grid32.ocx similar to
the way text can be edited in a TextBox?
rmoscosoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
dabelleiConnect With a Mentor Commented:
Private Sub Grid1_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 8 Then
        If Len(Grid1.Text) > 0 Then
            Grid1.Text = Left(Grid1.Text, Len(Grid1.Text) - 1)
        Else
            Beep
        End If
    Else
        If (KeyCode > 64 And KeyCode < 90) Or (KeyCode = 32) Then
            Grid1.Text = Grid1.Text & Chr(KeyCode)
        End If
    End If
End Sub


With this code you put in the keydown event of your grid you could simulate what you want and yor editing in the grid directly that's the way i've done it before.
0
 
rmoscosoAuthor Commented:
Edited text of question
0
 
vmanoCommented:
as far as i know, you can not do it. Probably what you can do is, present the contents of the cell in a text box, and allow editing the contents of that cell.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
rmoscosoAuthor Commented:
Yes, that is the way I have been doing it.  Unfortunately the powers that be don't
want it that way.  Is there some other type of grid control that I may use that allows
this type of editing?  Or do I have to revert at making a grid out of text boxes?
0
 
rmoscosoAuthor Commented:
Yes, that is the way I have been doing it.  Unfortunately the powers that be don't
want it that way.  Is there some other type of grid control that I may use that allows
this type of editing?  Or do I have to revert at making a grid out of text boxes?
0
 
vmanoCommented:
try VSFlexGrid Control. their web site www.videosoft.com. if you are using VB 6.0 Enterprise Edition, they are included in that.
0
 
rmoscosoAuthor Commented:
Thank you much!!!
0
All Courses

From novice to tech pro — start learning today.