Datagrid currencellchanged event

  • Thread starter Thread starter obiwan1130
  • Start date Start date
O

obiwan1130

I have a datagrid that I'm populating using a datasource.

I have code that needs to run on the currentcellchanged event.

After populating the grid, the currentcell is Row 0, Column 0.

When I tap on the first row of my grid, the currentcellchanged event
isn't firing--because the current cell hasn't changed.

Is this a known problem? Is there a workaround?

Thanks in advance...
 
It works fine for me. When I click in the DataGrid the first time, I get
the CurrentCellChanged event...

Paul T.
 
It is normal than if your current row = 0 then when you tap on the first the
event doesn't fire because you are at index 0.

After fill the grid when no row was selected your index suppose to be -1.

If you set by programmation the selected to 1 so fire the event by
programmation to.


____________________
Franky
(e-mail address removed)
 
I agree that the index should probably be -1, but it's not.

I am not setting it by programmation currently. But I have worked
around this issue by firing the event myself immediatly after
population of the grid.

But it seems like this is an unnecessary step.
 
Back
Top