Skip to content

Commit 29527dc

Browse files
DevExpressExampleBotDevExpressExampleBot
authored andcommitted
Source auto update [skip ci]
1 parent a956814 commit 29527dc

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

VB/DisplayCustomText_CodeBehind/DisplayCustomText_CodeBehind.Net5.vbproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<OptionInfer>On</OptionInfer>
55
<TargetFramework>net8.0-windows</TargetFramework>
66
<OutputType>WinExe</OutputType>
7-
<RootNamespace></RootNamespace>
7+
<RootNamespace>
8+
</RootNamespace>
89
<AssemblyName>DisplayCustomText_CodeBehind</AssemblyName>
910
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
1011
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>

VB/DisplayCustomText_CodeBehind/DisplayCustomText_CodeBehind.vbproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProjectGuid>{A8BF3950-CDAC-43C1-82F0-955D63BB7A23}</ProjectGuid>
88
<OutputType>WinExe</OutputType>
9-
<RootNamespace></RootNamespace>
9+
<RootNamespace>
10+
</RootNamespace>
1011
<AssemblyName>DisplayCustomText_CodeBehind</AssemblyName>
1112
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1213
<FileAlignment>512</FileAlignment>

VB/DisplayCustomText_CodeBehind/MainWindow.xaml.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Namespace DisplayCustomText_CodeBehind
2929
End Sub
3030

3131
Private Sub gridControl1_CustomColumnDisplayText(ByVal sender As Object, ByVal e As CustomColumnDisplayTextEventArgs)
32-
If Not e.Column.Equals(Me.columnProductName) Then Return
32+
If Not e.Column.Equals(Me.columnProductName) OrElse e.ListSourceIndex < 0 Then Return
3333
If CDbl(Me.gridControl1.GetCellValue(e.RowHandle, "Discount")) > 20 Then e.DisplayText =(CStr(e.Value)) & " (SALE)"
3434
End Sub
3535

VB/DisplayCustomText_MVVM/DisplayCustomText_MVVM.Net5.vbproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<OptionInfer>On</OptionInfer>
55
<TargetFramework>net8.0-windows</TargetFramework>
66
<OutputType>WinExe</OutputType>
7-
<RootNamespace></RootNamespace>
7+
<RootNamespace>
8+
</RootNamespace>
89
<AssemblyName>DisplayCustomText_MVVM</AssemblyName>
910
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
1011
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>

VB/DisplayCustomText_MVVM/DisplayCustomText_MVVM.vbproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProjectGuid>{D1323D6C-09A3-40CB-BCCE-6842E60758DF}</ProjectGuid>
88
<OutputType>WinExe</OutputType>
9-
<RootNamespace></RootNamespace>
9+
<RootNamespace>
10+
</RootNamespace>
1011
<AssemblyName>DisplayCustomText_MVVM</AssemblyName>
1112
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1213
<FileAlignment>512</FileAlignment>

VB/DisplayCustomText_MVVM/MainViewModel.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Namespace DXGrid_DisplayCustomText_MVVM
4242

4343
<Command>
4444
Public Sub CustomColumnDisplayText(ByVal args As ColumnDisplayTextArgs)
45-
If Not Equals(args.FieldName, NameOf(Invoice.ProductName)) Then
45+
If Not Equals(args.FieldName, NameOf(Invoice.ProductName)) OrElse args.SourceIndex < 0 Then
4646
Return
4747
End If
4848

0 commit comments

Comments
 (0)