{"id":23061496,"url":"https://github.com/syncfusionexamples/gridlayout-with-xamarin.forms-listview","last_synced_at":"2026-07-22T03:32:02.146Z","repository":{"id":54415071,"uuid":"158812213","full_name":"SyncfusionExamples/GridLayout-with-xamarin.forms-listview","owner":"SyncfusionExamples","description":"This sample show case the grid layout in listview xamarin.forms","archived":false,"fork":false,"pushed_at":"2025-09-13T05:15:21.000Z","size":4844,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T10:25:04.381Z","etag":null,"topics":["grid-layout","sflistview","xamarin-forms","xamarin-listview","xforms"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SyncfusionExamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-23T09:44:24.000Z","updated_at":"2025-09-13T05:15:25.000Z","dependencies_parsed_at":"2025-02-09T23:33:11.350Z","dependency_job_id":null,"html_url":"https://github.com/SyncfusionExamples/GridLayout-with-xamarin.forms-listview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SyncfusionExamples/GridLayout-with-xamarin.forms-listview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FGridLayout-with-xamarin.forms-listview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FGridLayout-with-xamarin.forms-listview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FGridLayout-with-xamarin.forms-listview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FGridLayout-with-xamarin.forms-listview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyncfusionExamples","download_url":"https://codeload.github.com/SyncfusionExamples/GridLayout-with-xamarin.forms-listview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FGridLayout-with-xamarin.forms-listview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35745530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grid-layout","sflistview","xamarin-forms","xamarin-listview","xforms"],"created_at":"2024-12-16T03:17:40.942Z","updated_at":"2026-07-22T03:32:02.130Z","avatar_url":"https://github.com/SyncfusionExamples.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GridLayout with xamarin.forms listview\nThis sample show case the grid layout in listview xamarin.forms\n\n## Sample\n\n```xaml\n\u003cGrid\u003e\n    \u003csyncfusion:SfListView x:Name=\"listView\"\n                    SelectionMode=\"Multiple\"\n                    Grid.Row=\"1\"                              \n                    SelectedItems=\"{Binding SelectedItems}\"\n                    ItemSpacing=\"3\"\u003e\n\n        \u003csyncfusion:SfListView.ItemTemplate\u003e\n            \u003cDataTemplate\u003e\n                \u003cGrid RowSpacing=\"0\" ColumnSpacing=\"0\"\u003e\n                    . . . \n                    . . .\n                \u003c/Grid\u003e\n            \u003c/DataTemplate\u003e\n        \u003c/syncfusion:SfListView.ItemTemplate\u003e\n\u003c/Grid\u003e\n\nC#:\nprotected override void OnSizeAllocated(double width, double height)\n{\n    base.OnSizeAllocated(width, height);\n    try\n    {\n        base.OnSizeAllocated(width, height);\n\n        if (width \u003e 0 \u0026\u0026 pageWidth != width)\n        {\n            var size = Application.Current.MainPage.Width / listView.ItemSize;\n            var gridLayout = listView.LayoutManager as GridLayout;\n            gridLayout.SpanCount = (int)size;                  \n            listView.LayoutManager = gridLayout;\n        }\n    }\n    catch (Exception ex)\n    {\n\n    }\n}\n```\n## Requirements to run the demo\n\n* Xamarin add-ons for Visual Studio (available via the Visual Studio installer).\n\n## Troubleshooting\n\n### Path too long exception\n\nIf you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fgridlayout-with-xamarin.forms-listview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyncfusionexamples%2Fgridlayout-with-xamarin.forms-listview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fgridlayout-with-xamarin.forms-listview/lists"}