PDA

Click to See Complete Forum and Search --> : can't get last userinput from datagrid


c@lle
Nov 30th, 1999, 03:32 PM
I can't get the input of the users when they edit a field in the datagrid.

In the event 'beforeColUpdate' I want to check the value they entered, but I always get the value that was already in the grid.

This is what I already used:
Debug.Print DataGrid1.Text
Debug.Print DataGrid1.Columns(ColIndex).Text
Debug.Print DataGrid1.Columns(ColIndex).Value
Debug.Print DataGrid1.Columns(ColIndex).CellText(DataGrid1.Bookmark)
Debug.Print DataGrid1.Columns(ColIndex).CellValue(DataGrid1.Bookmark)

How can I get the text the user just typed???

JHausmann
Nov 30th, 1999, 09:40 PM
Does the edited record cause a new record to be created? If so, you might need to check the value in the BeforeInserted event...