Hello.
I have a DGV that is being populated by a XML file as the datasource. I can't seem to figure out how to convert the data in the 2nd column from a string to a short date.
This is my DGV code:
There are 6 columns in the DGV. I also would like to convert column 4 to a data type of "currency" .
Can anyone help me with this? I've looked at several examples online, but I can't seem to figure this out.
Thanks!
I have a DGV that is being populated by a XML file as the datasource. I can't seem to figure out how to convert the data in the 2nd column from a string to a short date.
This is my DGV code:
VB.NET:
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim xmlFile As XmlReader
xmlFile = XmlReader.Create("C:\Data.xml", New XmlReaderSettings())
Dim ds As New DataSet
ds.ReadXml(xmlFile)
DataGridView1.DataSource = ds.Tables(0)
End Sub
There are 6 columns in the DGV. I also would like to convert column 4 to a data type of "currency" .
Can anyone help me with this? I've looked at several examples online, but I can't seem to figure this out.
Thanks!