GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  Programming  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 115 of 260    Print  
how can we catch the values of controls which are placed in the datagrid

  
Total Answers and Comments: 5 Last Update: November 02, 2006     Asked by: SANJEEV 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 03, 2006 04:02:37   #1  
vishal sharma        

RE: how can we catch the values of controls which are ...

hi dear

you can catch the control contained in the datagrid by using the datagrid's item collection.

this way:

e.g you put a textbox in the datagrid in the firstrow, firstcolum

then try this

//first create a object of the textbox

TextBox Txt1=new TextBox();

Txt1=(TextBox)e.item.cell[0].control[0];

try this if done then ok otherwise you can contact me.

happy coding


 
Is this answer useful? Yes | No
April 21, 2006 06:53:51   #2  
vishalsharma Member Since: December 2005   Contribution: 10    

RE: how can we catch the values of controls which are ...
the answer stated above is right.
 
Is this answer useful? Yes | No
April 24, 2006 00:25:16   #3  
shubhoh Member Since: April 2006   Contribution: 5    

RE: how can we catch the values of controls which are ...

anser is correct but dont do new to the textbox bec u r instantiating it with the textbox in the grid


 
Is this answer useful? Yes | No
June 13, 2006 07:55:30   #4  
mahesh joshi        

The above code is correct
The above code is correct
 
Is this answer useful? Yes | No
November 02, 2006 06:02:19   #5  
Jagtar        

RE: how can we catch the values of controls which are ...
Use Item command to bind all the controls which are placed on different columns of a datagrid. when we will click on any control then it will fire a bubble event. Itemcommand will write the code in javascript for each control, any action is happed that code will execute and pass to common bubble event handler and item command code will be execute and page will be posted back to server. These events can also be handled on client side.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape