2012 m. rugpjūčio 4 d., šeštadienis

Value of type '1-dimensional array of System.Data.DataRow' cannot be converted to 'System.Data.DataRow'.

Problema: Value of type '1-dimensional array of System.Data.DataRow' cannot be converted to 'System.Data.DataRow'.

The Select() method of the datatable returns a 1-dimensional array of type DataRow. The following example should give you a guide.

Dim rows() As DataRow

rows = DataSchema1.Clientes.Select("IdCliente = IdClienLabel.Text")


If (Not rows Is Nothing) Then

    Text1.Text = rows(0).Item("Nombre").ToString

End If

Komentarų nėra:

Rašyti komentarą