Runtime manipulation of grids
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Runtime manipulation of grids

  1. #1
    Join Date
    Nov 2007
    Posts
    6

    Runtime manipulation of grids

    I have a grid with a number of rows and columns, that I want to add items to runtime.
    Using MyGrid.Children.Add(MyElement); always put the element in row 0, column 0.
    Is there a way to specify which row and column you want the element to go from C# code?

    Visual Studio 2008
    .Net 3.5

  2. #2
    Join Date
    Nov 2007
    Posts
    6

    Re: Runtime manipulation of grids

    After a little more investigation I found out. I need to set the value with:
    Grid.SetColumn(MyElement, 1);
    Grid.SetRow(MyElement, 2);
    This will put MyElement in Column[1], Row[2].

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center