Accessing DataGrid objects from button click?

Netnoobie

Regular
Joined
Feb 6, 2003
Messages
94
Location
Philadelphia
Hello, probably an easy question...

I have a DataGrid with a button in a column that when clicked needs to grab the value of a textbox for processing before the item is saved in the update. I can get into the button OnClick sub, but can't seem to recall how to access the textbox. Since the button click requires the EventArgs, and DataGrid items use the DataGridCommandEventArgs, how can I reference the DataGrid item from the button sub?

I've tried things like parent.findcontrol(txt) and the like, but can't see to get the value. I know I've see it done, but I can't seem to find it.

Any help would be great. Thanks!
 
Datrgrid Cell Access

I think that this snippet may help.


private m_IndexDataTable as DataTable()

Sub foo()

Dim V = m_IndexDataTable.Rows(2).Item(3)

End Sub
 
Back
Top