How detect Edit mode on a grid?

  • Thread starter Thread starter Woody Splawn
  • Start date Start date
W

Woody Splawn

I don't know what it's called when the little pencil shows up in the Row
Selector portion of the grid but to me it indicates that the user is in edit
mode. I would like to detect this condition because I have a Save button
above a Grid, but I do not want it to be visible until the user has pressed
some key to begin typing in one of the columns of the grid.

How can I detect that the user has entered edit mode?
 
You can check the ColumnChanged event of the underlying table and set do
this ..

btnSave.Visible = DataSet.HasChanges();
 
I believe this only fires after the user attempts to leave the collumn. I
need to find out what I need to know as soon as the user types something
into a column on a grid. As soon as he types, he is in edit mode and I want
to make a certain button visible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top