Thanks. I was thinking from a self development point of view. I was thinking since I am tackling WPF, I may as well learn C#, as well. It is always good to have a basic understanding of another language. I was just wondering if it was worth the effort.
I am aware that is is using the Data Table and not the DGV. I have a fairly good idea what he is doing.
I am an idiot.
After your comment, you got me thinking. I went and looked at my Data Table. The problem was Data Table Column was defined as a String and not a Boolean. I changed it to...
Thanks for the reply. I tried your code.
The problem is one of the Columns in the DGV is a CheckBox column. Your code does not detect this and sets the data to a String. An Exception is thrown on this column. Seems CheckBoxes do not like been treated as Strings ?
I am busy learning WPF and am going to tackle a new project soon.
I know VB.Net and like working with it. But, most books and references use C#. I have dabbled with C#, and I can learn it if needed. Is it worth the effort to learn C# with WPF, or do I stick with VB.Net and WPF.
I struggled with this for a while.
When a Excel Spreadsheet is imported into a DGV, some blanks cells (in Excel) are imported as Null values. This causes exceptions with some code. So, my idea was to replace all Null values with default values, depending on the data type ("" for Text or False...
I solved the problem using a Boolean conversion:
<!--Radio Button IsChecked to Boolean Conversion -->
<BooleanToVisibilityConverter x:Key="RadioButtonVisibilty" />
I would like to Hide/ Display text in a TextBlock depending on the Checked Status of a Radio Button. But I cannot get it to work. Any advice is welcome.
Radio Button Code:
<StackPanel Grid.Column="0" Grid.Row="0" Margin="8,0,0,5">
<RadioButton Content="mA to...
I am moving from WinForms & VB.Net to WPF & C#. My question is related to C#.
I have no idea of how to begin. I have trolled several forums for an idea of how to go about it, and get more confused as I go a long. The Function takes 3 string inputs from text boxes, converts them to real values...
I am trying to install "Microsoft Code Analysis 2017" on Visual Studio 2019. I get the following error:
I recently updated Visual Studio from Visual Studio 2017 to Visual Studio 2019.
What is the problem? Please assist.
I do not understand the following Warning when running a Code Analysis in Visual Studio 2019:
Relevant section of code:
'~~> Equipment Generate Parameters - OLEDB Connection
Dim sFilePath As String = gThisApplicationRunFolder & "\UserData\Template\DBF Files\equip.dbf"...
Thanks. List(Of String) fixed it.
The string is long, and has several sections to it. I am grouping portions of the string into separate lists, to be used later.
strParameterText = DGVScadaEquipmentGeneration.Rows(r).Cells("Param").Value.ToString
When compiling, with Option Strict on, I get a Late Binding Error on the following code. I have looked for an answer and tried several options to try and fix it, with no success.
Dim strParam1 As String()
Dim arrayParameters As ArrayList = Nothing
I have an existing XML file that I would like to add to a data set and display on a form, in data grid view. It is not in the normal format of Table and Table Columns. I have no idea on how to do this.
<?xml version="1.0" encoding="utf-8"?>
<template desc="Digital01 - Siemens">...
Hi. I am new to the Forum and new to VB.Net. I have had extensive programming with VBA Excel and other proprietary software (PLC & Scada in the Automation fields). :wavey:
My problem is as follows:
I have a Windows Form Application. I have created a XML DataSet, which has a table in it. This...