Xamarin forms -- which layout is best for selecting a row for editing the items in it ( grid, list or table - or other?)

tim 40 Reputation points
2024-03-29T17:05:38.5766667+00:00

I try to select a row to edit and I'm not sure which layout I should be using ( list , grid, Table , etc...)

( currently trying to use a grid layout with boxview but can't seem to get GestureRecognizers or Tapped to work)

the functions the App needs ( listed in case it makes a difference ) - but I only need help with #2

  1. open, read , display and group a Json file's data (done)
  2. select row to edit ( I'm stuck)
  3. send all data in row to edit page ( or edit the selected row in place) (not started)
  4. write data to output file. (not started)

in case it matters, I'm using Page Pagemodel and Model style.

Page - xmal and code behind which only contains (using, namespace and the following code)

public partial class CheckListPage : ContentPage

{

    public CheckListPage()

    {

        InitializeComponent();

    }      

}
```**Pagemodel**   - contains the bulk of the code

**Models**- contains the records get set  (ex .  public string Comments { get; set; })

TIA 

Tim  

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. tim 40 Reputation points
    2024-04-07T00:51:50.14+00:00

    Leon, forget about this post.

    I think the problem I'm having is the xaml Grid code. ( I can't get it to trigger a tapped event)

    I'm going to rewrite the xaml and remove the Grid and write it as a listview only. all my other listview pages change the background color when I tap the line. so I think I can get an event to fire.

    Thanks for trying to Help me with this code.

    Tim