Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get buttons row and column in grid

private void Button_Click(object sender, RoutedEventArgs e)
{
   var button = (Button)sender;
   var row = Grid.GetRow(button);
   var column = Grid.GetColumn(button);

   // ...other code.
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #buttons #row #column #grid
ADD COMMENT
Topic
Name
2+1 =