title: How to return Row and Col using Grid in Go Fyne?
body: <p>I am having a hard time figuring out how to return the rows and cols of the grid when the button is pressed. Here I have a simple code in Go:</p>
  <pre><code>package main
  
  import (
      &quot;fyne.io/fyne/v2/app&quot;
      &quot;fyne.io/fyne/v2/container&quot;
      &quot;fyne.io/fyne/v2/widget&quot;
  )
  
  func main() {
      a := app.New()
      w := a.NewWindow(&quot;Grid&quot;)
      content := container.NewGridWithColumns(3)
      for y := 0; y &lt; 3; y++ {
          for x := 0; x &lt; 3; x++ {
              btn := widget.NewButton(&quot;&quot;, nil) // returns row and col of the grid
              content.Add(btn)
          }
      }
      w.SetContent(content)
      w.ShowAndRun()
  }
  </code></pre>
  <p>I hope you guys can help :)</p>