how would can i determine if the current mode is set to "INSERT", "EDIT"

In Detailsview or Datagridview in VB 2005, how would can i determine if the current mode is set to "INSERT", "EDIT" mode for records.

Alex

[171 byte] By [AlexDcosta] at [2007-12-24]