1

I'm developing a UWP app on Windows 10. I'm trying change column and row of a control in code stage. However, I have not found a solution that works. Any suggestions ?

Thanks.

1 Answers1

3

you can use either of these ways :

Grid.SetRow(elementToSetOn, rowNumber);

or

elementToSetOn.SetValue(Grid.RowProperty, rowNumber);

Similarly you can set for column also.

Nikita Shrivastava
  • 2,978
  • 10
  • 20