如何将选定的单元格值显示到textbox1和textbox2?

时间:2010-12-20 06:30:40

标签: asp.net vb.net gridview

alt text

我已将gridview1中的票价字段转换为显示票价|座位在同一个单元格中,如下所示...

我希望当用户选择/点击预订按钮行时,票价金额将显示在textbox1中,座位将显示在Textbox2中

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
    Textbox1.text=GridView1.SelectedRow.Cells(6).TextToString
End Sub

1 个答案:

答案 0 :(得分:0)