How would Grid.RowSpan be changed in code behind? RRS feed

  • Question

  • I have a situation where depending on a certain condition in code behind I would like to hide a control and change Grid.RowSpan of the other control to fill the space in the grid.  Is there a way?



    listview1 has Grid.RowSpan of 1.

    I would like to change it to Grid.RowSpan of 2 in code behind



    Wednesday, November 14, 2007 5:07 PM


All replies

  • Grid.SetRowSpan(control, 2);


    Wednesday, November 14, 2007 5:36 PM
  • You can use like in WPF coding view.

    Grid.setRowSpan(UIElement element, int value);

    eg- Grid.setRowSpan(Button1, 3); 

    Monday, March 17, 2014 7:04 AM