MS_30.05.2016

This commit is contained in:
SchreiberM
2016-05-31 09:46:07 +02:00
parent 6a20480e7c
commit ecb4161e6a
7 changed files with 302 additions and 100 deletions

View File

@@ -4796,13 +4796,13 @@ Public Class frmConstructor_Main
Exit Sub
End If
Try
Dim row = grvwGrid.GetDataRow(e.RowHandle)
Dim itemvalue = row.Item("COLOR")
If itemvalue <> "" Then
Console.WriteLine("RowColor: " & itemvalue)
e.Appearance.BackColor = ColorTranslator.FromWin32(CInt(itemvalue))
Dim rowCellValue = grvwGrid.GetRowCellValue(e.RowHandle, "COLOR")
If rowCellValue <> "" Then
Dim Color As Color = Color.FromArgb(rowCellValue)
' Dim c As Color = DirectCast(rowCellValue, Color)
e.Appearance.BackColor = Color
e.HighPriority = True
End If
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical)
End Try
@@ -5339,4 +5339,7 @@ Public Class frmConstructor_Main
#End Region
Private Sub grvwGrid_CellValueChanged(sender As Object, e As CellValueChangedEventArgs) Handles grvwGrid.CellValueChanged
End Sub
End Class