Is there anything qrong with this code?
My load event
I do not get any errors when placed in the formLoad event, but there is also no "computed" value in the column for the rows.
I am using vb 2005 express.
Thanks
Code:
Sub showExtended()
Dim dcTotal As New Data.DataColumn("totalPrice", System.Type.GetType("System.Decimal"))
dcTotal.Expression = "PriceEach * QTY"
End Sub
My load event
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'DatagridDataSet.tblData' table. You can move, or remove it, as needed.
Me.TblDataTableAdapter.Fill(Me.DatagridDataSet.tblData)
showTotal()
showExtended()
End Sub
I do not get any errors when placed in the formLoad event, but there is also no "computed" value in the column for the rows.
I am using vb 2005 express.
Thanks