Skip to content

Commit de90bb5

Browse files
Merge pull request #1 from ShobikaPalani/master
How to change row background based on RowState when underlying source…
2 parents af4c90d + 10448e7 commit de90bb5

22 files changed

+1183
-0
lines changed

App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
</configuration>

App.xaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Application x:Class="DataTableDemo.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
StartupUri="MainWindow.xaml">
5+
<Application.Resources>
6+
7+
</Application.Resources>
8+
</Application>

App.xaml.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace DataTableDemo
10+
{
11+
/// <summary>
12+
/// Interaction logic for App.xaml
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
}
17+
}

DataTableDemo_2010.csproj

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{D33BB780-C18E-420A-9F38-40689BB6098E}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>DataTableDemo</RootNamespace>
11+
<AssemblyName>DataTableDemo</AssemblyName>
12+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15+
<WarningLevel>4</WarningLevel>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<PlatformTarget>AnyCPU</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<PlatformTarget>AnyCPU</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="ReachFramework" />
38+
<Reference Include="Syncfusion.Data.WPF">
39+
<SpecificVersion>False</SpecificVersion>
40+
</Reference>
41+
<Reference Include="Syncfusion.SfGrid.WPF">
42+
<SpecificVersion>False</SpecificVersion>
43+
</Reference>
44+
<Reference Include="Syncfusion.Shared.Wpf">
45+
<SpecificVersion>False</SpecificVersion>
46+
</Reference>
47+
<Reference Include="System" />
48+
<Reference Include="System.ComponentModel.DataAnnotations" />
49+
<Reference Include="System.Data" />
50+
<Reference Include="System.Runtime.Serialization" />
51+
<Reference Include="System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
52+
<Reference Include="System.Xml" />
53+
<Reference Include="Microsoft.CSharp" />
54+
<Reference Include="System.Core" />
55+
<Reference Include="System.Xml.Linq" />
56+
<Reference Include="System.Data.DataSetExtensions" />
57+
<Reference Include="System.Xaml">
58+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
59+
</Reference>
60+
<Reference Include="WindowsBase" />
61+
<Reference Include="PresentationCore" />
62+
<Reference Include="PresentationFramework" />
63+
</ItemGroup>
64+
<ItemGroup>
65+
<ApplicationDefinition Include="App.xaml">
66+
<Generator>MSBuild:Compile</Generator>
67+
<SubType>Designer</SubType>
68+
</ApplicationDefinition>
69+
<Compile Include="SfDataGridBehavior.cs" />
70+
<Compile Include="ViewModel.cs" />
71+
<Page Include="MainWindow.xaml">
72+
<Generator>MSBuild:Compile</Generator>
73+
<SubType>Designer</SubType>
74+
</Page>
75+
<Compile Include="App.xaml.cs">
76+
<DependentUpon>App.xaml</DependentUpon>
77+
<SubType>Code</SubType>
78+
</Compile>
79+
<Compile Include="MainWindow.xaml.cs">
80+
<DependentUpon>MainWindow.xaml</DependentUpon>
81+
<SubType>Code</SubType>
82+
</Compile>
83+
</ItemGroup>
84+
<ItemGroup>
85+
<Compile Include="Properties\AssemblyInfo.cs">
86+
<SubType>Code</SubType>
87+
</Compile>
88+
<Compile Include="Properties\Resources.Designer.cs">
89+
<AutoGen>True</AutoGen>
90+
<DesignTime>True</DesignTime>
91+
<DependentUpon>Resources.resx</DependentUpon>
92+
</Compile>
93+
<Compile Include="Properties\Settings.Designer.cs">
94+
<AutoGen>True</AutoGen>
95+
<DependentUpon>Settings.settings</DependentUpon>
96+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
97+
</Compile>
98+
<EmbeddedResource Include="Properties\Resources.resx">
99+
<Generator>ResXFileCodeGenerator</Generator>
100+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
101+
</EmbeddedResource>
102+
<None Include="Properties\Settings.settings">
103+
<Generator>SettingsSingleFileGenerator</Generator>
104+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
105+
</None>
106+
<AppDesigner Include="Properties\" />
107+
</ItemGroup>
108+
<ItemGroup>
109+
<None Include="App.config" />
110+
</ItemGroup>
111+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
112+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
113+
Other similar extension points exist, see Microsoft.Common.targets.
114+
<Target Name="BeforeBuild">
115+
</Target>
116+
<Target Name="AfterBuild">
117+
</Target>
118+
-->
119+
</Project>

DataTableDemo_2010.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataTableDemo_2010", "DataTableDemo_2010.csproj", "{D33BB780-C18E-420A-9F38-40689BB6098E}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{D33BB780-C18E-420A-9F38-40689BB6098E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{D33BB780-C18E-420A-9F38-40689BB6098E}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{D33BB780-C18E-420A-9F38-40689BB6098E}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{D33BB780-C18E-420A-9F38-40689BB6098E}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

DataTableDemo_2012.csproj

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{D33BB780-C18E-420A-9F38-40689BB6098E}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>DataTableDemo</RootNamespace>
11+
<AssemblyName>DataTableDemo</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15+
<WarningLevel>4</WarningLevel>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<PlatformTarget>AnyCPU</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<PlatformTarget>AnyCPU</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="ReachFramework" />
38+
<Reference Include="Syncfusion.Data.WPF">
39+
<SpecificVersion>False</SpecificVersion>
40+
</Reference>
41+
<Reference Include="Syncfusion.SfGrid.WPF">
42+
<SpecificVersion>False</SpecificVersion>
43+
</Reference>
44+
<Reference Include="Syncfusion.Shared.Wpf">
45+
<SpecificVersion>False</SpecificVersion>
46+
</Reference>
47+
<Reference Include="System" />
48+
<Reference Include="System.ComponentModel.DataAnnotations" />
49+
<Reference Include="System.Data" />
50+
<Reference Include="System.Runtime.Serialization" />
51+
<Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
52+
<Reference Include="System.Xml" />
53+
<Reference Include="Microsoft.CSharp" />
54+
<Reference Include="System.Core" />
55+
<Reference Include="System.Xml.Linq" />
56+
<Reference Include="System.Data.DataSetExtensions" />
57+
<Reference Include="System.Xaml">
58+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
59+
</Reference>
60+
<Reference Include="WindowsBase" />
61+
<Reference Include="PresentationCore" />
62+
<Reference Include="PresentationFramework" />
63+
</ItemGroup>
64+
<ItemGroup>
65+
<ApplicationDefinition Include="App.xaml">
66+
<Generator>MSBuild:Compile</Generator>
67+
<SubType>Designer</SubType>
68+
</ApplicationDefinition>
69+
<Compile Include="SfDataGridBehavior.cs" />
70+
<Compile Include="ViewModel.cs" />
71+
<Page Include="MainWindow.xaml">
72+
<Generator>MSBuild:Compile</Generator>
73+
<SubType>Designer</SubType>
74+
</Page>
75+
<Compile Include="App.xaml.cs">
76+
<DependentUpon>App.xaml</DependentUpon>
77+
<SubType>Code</SubType>
78+
</Compile>
79+
<Compile Include="MainWindow.xaml.cs">
80+
<DependentUpon>MainWindow.xaml</DependentUpon>
81+
<SubType>Code</SubType>
82+
</Compile>
83+
</ItemGroup>
84+
<ItemGroup>
85+
<Compile Include="Properties\AssemblyInfo.cs">
86+
<SubType>Code</SubType>
87+
</Compile>
88+
<Compile Include="Properties\Resources.Designer.cs">
89+
<AutoGen>True</AutoGen>
90+
<DesignTime>True</DesignTime>
91+
<DependentUpon>Resources.resx</DependentUpon>
92+
</Compile>
93+
<Compile Include="Properties\Settings.Designer.cs">
94+
<AutoGen>True</AutoGen>
95+
<DependentUpon>Settings.settings</DependentUpon>
96+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
97+
</Compile>
98+
<EmbeddedResource Include="Properties\Resources.resx">
99+
<Generator>ResXFileCodeGenerator</Generator>
100+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
101+
</EmbeddedResource>
102+
<None Include="Properties\Settings.settings">
103+
<Generator>SettingsSingleFileGenerator</Generator>
104+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
105+
</None>
106+
<AppDesigner Include="Properties\" />
107+
</ItemGroup>
108+
<ItemGroup>
109+
<None Include="App.config" />
110+
</ItemGroup>
111+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
112+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
113+
Other similar extension points exist, see Microsoft.Common.targets.
114+
<Target Name="BeforeBuild">
115+
</Target>
116+
<Target Name="AfterBuild">
117+
</Target>
118+
-->
119+
</Project>

DataTableDemo_2012.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataTableDemo_2012", "DataTableDemo_2012.csproj", "{D33BB780-C18E-420A-9F38-40689BB6098E}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{D33BB780-C18E-420A-9F38-40689BB6098E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{D33BB780-C18E-420A-9F38-40689BB6098E}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{D33BB780-C18E-420A-9F38-40689BB6098E}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{D33BB780-C18E-420A-9F38-40689BB6098E}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

0 commit comments

Comments
 (0)