Editing a single row by showing a RadWindow with the data of a row on its fields. I want to do that by double clicking a row of RadGridView.
Here is my code snippet for EventHandler when double clicking:
Here is my code snippet for calling the RadWindow:
Can anyone help me to accomplish this? It would be a great help.
Regards,
RPM
Here is my code snippet for EventHandler when double clicking:
1.
private
void
grdProducts_MouseDoubleClick(
object
sender, MouseButtonEventArgs e)
2.
{
3.
Product product = (sender
as
"not-sure-what-to-use-here-as-sender"
)
as
Product;
4.
ShowProductWindow(product);
5.
}
Here is my code snippet for calling the RadWindow:
01.
private
void
ShowProductWindow(Product product)
02.
{
03.
if
(product !=
null
)
04.
{
05.
ProductWindow productWindow =
new
ProductWindow(product, amazonContext);
06.
productWindow.Closed += ProductWindowClosed;
07.
productWindow.ShowDialog();
08.
}
09.
}
Can anyone help me to accomplish this? It would be a great help.
Regards,
RPM