Fare il casting da datarow a string

venerdì 10 ottobre 2014 - 18.27

aktar Profilo | Newbie

Ok ragazzi ho risolto:

For Each txt As Control In FrmESTRAZ.GroupBox1.Controls
If TypeOf txt Is TextBox Then
txt.Text = CType(DataSet.Tables(0).Rows(poscorr).Item(CType(txt.Tag, String)), String)
End If
Next
End If

Si trattava di castare anche la proprietà Tag della textbox.
Un saluto a tutti
Antonio
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5