Hello experts,
My web application uses a single Gridview, which data source is being changed according to the selected DB table. For example, when the web is loaded, the gridview is empty and the user has to selected a table from a dropdownlist.
When a certain table is selected, i run a DB stored procedure on the server and set the data source of the Gridview to the result of the stored procedure.
Until now everything works quite well.
After the selected table is being presented, the user has an "edit" option. After the Edit button is clicked, the selected row changes from text labels to text boxes, and now the user can edit the contents of the row.
At this point i want to activate AJAX autocomplete extension. The problem is that my gridview formation is determined dynamically and therefore, i can't set the AJAX extension on the necessary textbox, as explained at all the tutorials that i've found.
My question is, how can i attach an autocomplete AJAX extension to a certain textbox which i find using the following code segment?
TextBox t = (GridViewTablePresent.FindControl(rowInxStr).FindControl(colInxStr) as TextBox);
Is there a solution for a single gridview or should i use number of gridviews for each one of my tables?
Thanks in advance,
Metayel