PoppapumpJ
Programmer
Hey, I have a datagrid with a ButtonColumn added in it. when i Click the button the event handler fires, but how do I get information about the Selected Item. The only properties available to e are Empty and GetType.
here is a clip of the code
[tt]
'Page load event
With ButColAdd
.ButtonType = ButtonColumnType.LinkButton
.text = "Add To Cart"
.CommandName = "Select"
end with
With dgIssues
.columns.add(butColAdd)
'Other columns added here
.datasource = dsIssues
.Databind
End with
'selectedIndexChanged Event
Private Sub dgIssues_SelectedIndexChanged(ByVal sender as Object, ByVal e as system.EventArgs) Handles dgIssues.SelectedIndexChanged
'This is where I would like to get information about the selected item, such as name and value
end sub
[/tt]
here is a clip of the code
[tt]
'Page load event
With ButColAdd
.ButtonType = ButtonColumnType.LinkButton
.text = "Add To Cart"
.CommandName = "Select"
end with
With dgIssues
.columns.add(butColAdd)
'Other columns added here
.datasource = dsIssues
.Databind
End with
'selectedIndexChanged Event
Private Sub dgIssues_SelectedIndexChanged(ByVal sender as Object, ByVal e as system.EventArgs) Handles dgIssues.SelectedIndexChanged
'This is where I would like to get information about the selected item, such as name and value
end sub
[/tt]