devxlogo

Editing the Regular Grid

Editing the Regular Grid

The regular grid that comes with Visual Basic cannot be editeddirectly. However, this problem can be easily circumvented withone line of code:

 Private Sub Grid1_KeyPress(KeyAscii As _        Integer)Grid1.Text = Grid1.Text & Chr(KeyAscii)End Sub

All the user has to do is select the cell to edit.

devx-admin

Share the Post: