For Small Text Fields i get: "text"
Large Text Fields i get: "lrgText"
Integer: "5"
Double: "6"
Date: "1/1/1900"
Boolean (tinyInt): "1"
I have checked around and it seems that I am doing this correctly, but I can't seem to get the values I want, any suggestions are appreciated. I reposted the code that I am using below.
Private Sub fillTextBoxes() Dim columnX As DataGridViewColumn Dim rowX As Integer Dim cVal As String = "" Dim i As Integer = 0 rowX = dgView.CurrentRow.Index While i < Me.portTabs.SelectedTab.Controls.Item(0).Controls.Item(0).Controls.Count For Each columnX In dgView.Columns If Me.portTabs.SelectedTab.Controls.Item(0).Controls.Item(0).Controls.Item(i).Name = columnX.Name Then cVal = dgView.Item(columnX.Name, rowX).Value 'rowX.Cells(columnX.Name.ToString).Value() MsgBox(cVal) Me.portTabs.SelectedTab.Controls.Item(0).Controls.Item(0).Controls.Item(i).Controls.Item(0).Text = cVal Exit For End If Next i = i + 1 End While End Sub

New Topic/Question
Reply




MultiQuote





|