 update the cell's text,
   ' since it is fired for all types of cancellation,
   ' including when the user decides to alt-tab off
   ' to another app.
   txtEdit.Visible = False
   
End Sub

''' &lt;summary&gt;
''' Sort the grid's data in response to a column click.
''' &lt;/summary&gt;
''' &lt;param name="lCol"&gt;The column which was clicked&lt;/param&gt;
Private Sub grdThis_ColumnClick(ByVal lCol As Long)
Dim sTag As String
Dim iSortIndex As Long
      
   With grdThis.SortObject
      
      ' This dem