开发者

DetailsView data to Textbox

After long time looking for a solution I found one here - I thought.... The code I tried to implement was:

If DetailsView1.Rows.Count > 0 Then
            Dim row As DetailsViewRow
            For Each row In DetailsView1.Rows
                TextBox3.Text &= row.Cells(0).Text & " = " & row.Cells(1).Text & " "
            Next
        Else
            TextBox3.Text = "No data found"
        End If

As result I only got the line label. The row.Cells(1) did not 开发者_如何转开发return any data.

My DetailView show correct data from my database (total 7 lines). I need to merge these data together with some other user input fields and create an output file.

My questions are: 1) How do I get the detailview data into a textbox 2) My final task is to create an output.txt file

I have to use VB since I'm unfamilar with C#.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜