Skip to content

Commit 14105bf

Browse files
Merge pull request #2 from SyncfusionExamples/MAUI-4866
How to pass selected row's data to a command in MAUI DataGrid (SfDataGrid)?
2 parents fc8e780 + f77a692 commit 14105bf

File tree

4 files changed

+35
-48
lines changed

4 files changed

+35
-48
lines changed

DataGridMAUI.sln

Lines changed: 0 additions & 27 deletions
This file was deleted.

DataGridMAUI/DataGridMAUI.csproj

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,40 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
6-
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
7-
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
4+
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
86
<OutputType>Exe</OutputType>
97
<RootNamespace>DataGridMAUI</RootNamespace>
108
<UseMaui>true</UseMaui>
119
<SingleProject>true</SingleProject>
1210
<ImplicitUsings>enable</ImplicitUsings>
1311

14-
<!-- Display name -->
1512
<ApplicationTitle>DataGridMAUI</ApplicationTitle>
16-
17-
<!-- App Identifier -->
1813
<ApplicationId>com.companyname.datagridmaui</ApplicationId>
1914
<ApplicationIdGuid>8be4dd26-39f7-423c-932a-70e7af6e7f09</ApplicationIdGuid>
20-
21-
<!-- Versions -->
2215
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
2316
<ApplicationVersion>1</ApplicationVersion>
2417

18+
<!-- OS versions may remain the same unless new APIs are required -->
2519
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
2620
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion>
2721
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
2822
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
2923
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
30-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
3124
</PropertyGroup>
3225

3326
<ItemGroup>
34-
<!-- App Icon -->
3527
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
36-
37-
<!-- Splash Screen -->
3828
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
39-
40-
<!-- Images -->
4129
<MauiImage Include="Resources\Images\*" />
4230
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
43-
44-
<!-- Custom Fonts -->
4531
<MauiFont Include="Resources\Fonts\*" />
46-
47-
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
4832
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
4933
</ItemGroup>
5034

5135
<ItemGroup>
52-
<PackageReference Include="Syncfusion.Maui.DataGrid" Version="20.4.51" />
36+
<PackageReference Include="Syncfusion.Maui.DataGrid" Version="*" />
5337
</ItemGroup>
5438

39+
5540
</Project>

DataGridMAUI/DataGridMAUI.csproj.user

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
5-
<ActiveDebugFramework>net6.0-windows10.0.19041.0</ActiveDebugFramework>
5+
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
66
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
7+
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
8+
<DefaultDevice>pixel_7_-_api_35</DefaultDevice>
9+
</PropertyGroup>
10+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'">
11+
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
712
</PropertyGroup>
813
</Project>

DataGridMAUI/DataGridMAUI.sln

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.12.35506.116 d17.12
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataGridMAUI", "DataGridMAUI.csproj", "{C9C0B62F-8C4D-4D85-B40F-673EB1C70EC9}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{C9C0B62F-8C4D-4D85-B40F-673EB1C70EC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{C9C0B62F-8C4D-4D85-B40F-673EB1C70EC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{C9C0B62F-8C4D-4D85-B40F-673EB1C70EC9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17+
{C9C0B62F-8C4D-4D85-B40F-673EB1C70EC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{C9C0B62F-8C4D-4D85-B40F-673EB1C70EC9}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{C9C0B62F-8C4D-4D85-B40F-673EB1C70EC9}.Release|Any CPU.Deploy.0 = Release|Any CPU
20+
EndGlobalSection
21+
GlobalSection(SolutionProperties) = preSolution
22+
HideSolutionNode = FALSE
23+
EndGlobalSection
24+
EndGlobal

0 commit comments

Comments
 (0)