This question is locked. New answers and comments are not allowed.
I'm trying to achive the following.
Click on a row, another user control will be updated with the corresponding data.
And the CurrentItem is not getting the current clicked row.
I tried using CurrentRecord. same issue too.
It's always on the second call, that the currentItem becomes the correct clicked row.
Please help.
thanks.
Click on a row, another user control will be updated with the corresponding data.
And the CurrentItem is not getting the current clicked row.
I tried using CurrentRecord. same issue too.
It's always on the second call, that the currentItem becomes the correct clicked row.
Please help.
thanks.
void RadGridViewIndicator_RowLoaded(object sender, RowLoadedEventArgs e)
{
foreach (var cell in e.Row.Cells)
{
if (cell is GridViewHeaderCell)
continue;
cell.MouseLeftButtonDown +=
new System.Windows.Input.MouseButtonEventHandler(cell_MouseLeftButtonDown);
}
}
void cell_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
object currentRecord = RadGridViewIndicator.CurrentItem;
}