Selecting a Cell in a datagrid

D

Dean Landry

Hello,

I'm working with a datagrid. Whenever a user enters a row, I catch the
event with the rowChanging event. If the user enters invalid input, I want
to send them back to the cell they need to fix. How do I, programatically,
set the current cell back to the row they just came from?

Thanks,

Dean
 
D

Dean Landry

never mind... I figured it out just now.... in my columnChanging event, I
set a DataGridCell object to the current values. I then set the
datagrid.currentcell to that object's values on the error.

Dean
 

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

Top