.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

How to find the grid view control ?

Posted By: laptop charles     Posted Date: September 12, 2012    Points:5   Category :ASP.Net
I have form view, It contain grid view i need to find the .net control inside the grid view.

Responses
Author: N SRILATHA             
Posted Date: September 24, 2012     Points: 20   

Hi,


controlclass obj=(controlType)gridview.Row[i].FindControl("RequiredcontrolId");

Example:


TextBox txtid = (TextBox)Grid1.Rows[Grid1.EditIndex].FindControl("txtId")



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend