Which checkbox was checked in a web DataGrid?

I have a webpage that shows a company's aircraft (what types of Aircraft they have).
I have a datalist, that displays Aircraft Categories.
Inside that, is a datagrid, that displays a checkbox, and an Aircraft Type on each row.
It's all nicely bound, and shows the checkbox checked/not checked when appropriate.

I'd like to respond to the checkbox's OnCheckedChanged event to either add or delete a row in the underlying table as the user checks or unchecks the checkbox.

Here's the sub...
    Public Sub chkType_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkType.CheckedChanged

    End Sub

But how do I know which row in the datagrid was checked/unchecked?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

glennkerrAuthor Commented:
Here's the answer...

    Public Sub chkType_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkType.CheckedChanged
        'sender.parent is cell, and it's parent is the DataGridItem
        Dim dgi As System.Web.UI.WebControls.DataGridItem = CType(sender.parent.parent, System.Web.UI.WebControls.DataGridItem)
        Dim lblTypeID As System.Web.UI.WebControls.Label = CType(dgi.FindControl("lblTypeID"), System.Web.UI.WebControls.Label)
    End Sub

Moderator: Request refund, as I answered my own question.
(unless anybody else has anything good to add?)
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.