Link to home
Start Free TrialLog in
Avatar of brdrok
brdrok

asked on

Determining whether the user selected a different row on datagrid

Hello,

is there a simple way to determine whether the user clicked on a different row inside the datagrid?

thanks


ASKER CERTIFIED SOLUTION
Avatar of dsabo
dsabo
Flag of Venezuela, Bolivarian Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of markjellul
markjellul

Do you mean if someone clicks on a different row? whether they click update button or similar?

Well basically with most events in the Datagrid you have the arguements in the Event handler you can find out which row has been selected from that ....

e.Item.Cells[0] is the first cell data... 0 being the index of the cell...

This way for any type of command or event you can know if the row has been changed.
Avatar of brdrok

ASKER

thanks dsabo....

worked out pretty good.