Netnoobie
Well-known member
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 cant 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?
Ive tried things like parent.findcontrol(txt) and the like, but cant see to get the value. I know Ive see it done, but I cant seem to find it.
Any help would be great. Thanks!
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 cant 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?
Ive tried things like parent.findcontrol(txt) and the like, but cant see to get the value. I know Ive see it done, but I cant seem to find it.
Any help would be great. Thanks!