ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1678
Number of posts: 3227

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Using AJAX autocomplete extension in a dynamically populated GridView Posted by metayel on 24 Dec 2009 at 1:48 PM
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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.