This question is locked. New answers and comments are not allowed.
I have a radgridview in a radwindow...This radwindow and grid is my "shopping cart"...When the user clicks on items and "adds to cart" the first time, then they click on the "Cart" button, the radwindow opens up and displays the items in the grid...If they close the grid, then "add more items to cart", the new items don't show up in the grid. When the user "adds item to cart", they are essentially adding items to a collection(local variable). I take that collection, bind it to the grid and open/show the radwindow with the grid in it. Am I not using the grid correctly? Below is the code sample that binds the collection to the grid and displays the grid/window.
Thanks again.
Thanks again.
private
void Button_Click_3(object sender, RoutedEventArgs e)
{
try
{
//_shoppingCartitems is a collection that the user adds an item to from other parts of the ui. The "count" property looks correct when I bind the collection to the grid.
if (_shoppingCartItems.Count > 0)
{
radwinShoppingCart.Show();
radgridShoppingCart.ItemsSource = _shoppingCartItems;
}
}
catch (Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
return;
}
}