Rowupdating findcontrol textbox


Add(count) Next 'Currently null pointer to my Drop Down List Dim Quantity Text Box As Drop Down List Quantity Text Box = Cart Grid. a simple thing like this takes me forever to solve, if without u guys' kind help : D Hi Guy, I tried and even though thec codes work, it only seems to work for my 1st row of the grid. all good On update(edit) of an item in the lookup table I would like to also update any records of a main inventory table that contains the old lookup value. Specifically, how can I retrieve the initial column value from the gridview prior to edit to pass on to an updatecommand? In my Row Editing code I tried to access the Drop Down List1 which can be found in the Edit Item Template tag for the third cell by using the following code: Actually, I needed to get this Drop Down List to display in a way that it only shows a list of a number of item quantity available in the inventory...



Best Regards, Eric Du MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue. Protected Sub Cart Grid_Row Data Bound(By Val sender As Object, By Val e As System. Edit) Then Dim Original Qty As Integer Original Qty = CType(e. Add(count) Next Dim Quantity Text Box As Drop Down List Quantity Text Box = CType(e. Find Control("Drop Down List1"), Drop Down List) Quantity Text Box. View itself is a Panel, so you can use Find Control to find the Grid View itself.

And you can use the specific row, then use Find Control to find the control of Textbox inside. Thx ^_^ View itself is a Panel, so you can use Find Control to find the Grid View itself. The problem I am having is that Find Control does not find the textbox, altough the row does contain the controls... My suggestion is that put your code in the Grid View_Row Editing event, just like this: Grid View1.

To String(); Text Box text Zhmaray Sandeka = (Text Box)row.