Netnoobie
Regular
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!
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!