C
Chris
I need the value of a field of a detailsview in DataBound event.
i can find the fieldname with this:
Dim a As DataControlField
a = DetailsView1.Fields(0)
But how to get the value of that field?
i tried a lot of things without succes:
Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DetailsView1.DataBound
dim enqna as DetailsViewRow
enqna = DetailsView1.DataItem
or
dim enqna As DataColumn
enqna= DetailsView1.DataItem
.....
or
Dim va As String
va = DetailsView1.Controls.Item(1).ToString
Thanks for help
Chris
i can find the fieldname with this:
Dim a As DataControlField
a = DetailsView1.Fields(0)
But how to get the value of that field?
i tried a lot of things without succes:
Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DetailsView1.DataBound
dim enqna as DetailsViewRow
enqna = DetailsView1.DataItem
or
dim enqna As DataColumn
enqna= DetailsView1.DataItem
.....
or
Dim va As String
va = DetailsView1.Controls.Item(1).ToString
Thanks for help
Chris