Hi,
I have a code:
RadGridView usersGrid = app.VisualTree.Find.ByName<RadGridView>("usersGrid");
Assert.IsNotNull(usersGrid, "users grid not found");
usersGrid.Wait.For(ag => ag.As<RadGridView>().Rows.Count > 0, timeout, "Rows not found");
Assert.IsTrue(usersGrid.Rows.Count > 0, "users grid contains 0 rows");
//double click on randomize row
usersGrid.Rows[0].User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, new System.Drawing.Point(10, 10));
var qwe = usersGrid.SelectedItem;
var qwe1 = usersGrid.SelectedItem as Models.User;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
"usersGrid" are binding from a List<Models.User>. I want to convert selected row to "Models.User"
In result I have that type of "qwe" = "Models.User", but "qwe1" is NULL.
It's possibly solve this problem ?
I have a code:
RadGridView usersGrid = app.VisualTree.Find.ByName<RadGridView>("usersGrid");
Assert.IsNotNull(usersGrid, "users grid not found");
usersGrid.Wait.For(ag => ag.As<RadGridView>().Rows.Count > 0, timeout, "Rows not found");
Assert.IsTrue(usersGrid.Rows.Count > 0, "users grid contains 0 rows");
//double click on randomize row
usersGrid.Rows[0].User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, new System.Drawing.Point(10, 10));
var qwe = usersGrid.SelectedItem;
var qwe1 = usersGrid.SelectedItem as Models.User;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
"usersGrid" are binding from a List<Models.User>. I want to convert selected row to "Models.User"
In result I have that type of "qwe" = "Models.User", but "qwe1" is NULL.
It's possibly solve this problem ?