GridView control help [modified]
-
GDay everyone, I have a problem with Gridview that I really need someone's help. I'd like to get data of the record at which user clicks on the select hyperlink of that record in GridView. I need to save it and use it to populate data of that record into another form. Please give me a solution. Thanks in advance. Eric -- modified at 6:55 Tuesday 15th May, 2007
eric
-
GDay everyone, I have a problem with Gridview that I really need someone's help. I'd like to get data of the record at which user clicks on the select hyperlink of that record in GridView. I need to save it and use it to populate data of that record into another form. Please give me a solution. Thanks in advance. Eric -- modified at 6:55 Tuesday 15th May, 2007
eric
Hi,
Dim row As GridViewRow = GridView1.SelectedRow Dim lbl As Label = row.Cells(1).Controls(1) MsgBox(lbl.Text)
This will get second cell value and display it(First cell is select link). u can use Cells(1 or 2 or 3...) for each cell. U should specify selectcommand to the data source(ur select query).
If U Have Interest, U Can... Sherin Iranimose
-
GDay everyone, I have a problem with Gridview that I really need someone's help. I'd like to get data of the record at which user clicks on the select hyperlink of that record in GridView. I need to save it and use it to populate data of that record into another form. Please give me a solution. Thanks in advance. Eric -- modified at 6:55 Tuesday 15th May, 2007
eric
Hi Chrish, U could use the RowCommand event for ur problem u cited.
Bijay Bhaskar Deo Thanks & Regard
-
Hi,
Dim row As GridViewRow = GridView1.SelectedRow Dim lbl As Label = row.Cells(1).Controls(1) MsgBox(lbl.Text)
This will get second cell value and display it(First cell is select link). u can use Cells(1 or 2 or 3...) for each cell. U should specify selectcommand to the data source(ur select query).
If U Have Interest, U Can... Sherin Iranimose