IT Community - Software Programming, Web Development and Technical Support

How to read datagrid values from javascript

This is a discussion on How to read datagrid values from javascript within the C# Programming forums, part of the Software Development category; How to read datagrid values from javascript...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-18-2007, 07:02 AM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 138
GDevakii is on a distinguished road
Question How to read datagrid values from javascript

How to read datagrid values from javascript
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-18-2007, 07:13 AM
SaravananJ SaravananJ is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 79
SaravananJ is on a distinguished road
Default Re: How to read datagrid values from javascript

Hi,
Just create datagrid server tag as follows
<aspataGrid ID="MyDataGrid" runat="server"></aspataGrid>

and the JavaScript function to read datagrid is as follows
function readDataGrid()
{
var gridContent = document.getElementById('MyDataGrid');

for(var i=0;i< gridContent.rows.length;i++)
{
for(var j=0;j< gridContent.rows[i].cells.length;j++)
{
This iterates through row\cells
//gridContent.rows[i].cells[j].innerHTML;
}

}
}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/c-programming/3358-how-read-datagrid-values-javascript.html
Posted By For Type Date
Information about datagrid This thread Refback 08-19-2007 06:57 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid in ASP.Net S.Vinothkumar ASP and ASP.NET Programming 4 11-15-2007 01:41 AM
Read XML by Dataset gp_logesh ASP and ASP.NET Programming 0 10-31-2007 03:13 AM
How do I read a cookie with a given name in javascript? kingmaker HTML, CSS and Javascript Coding Techniques 2 08-09-2007 12:35 AM
How to Edit and delete values in a Datagrid? kingmaker ASP and ASP.NET Programming 1 07-24-2007 05:56 AM
Can anybody tell me how to read XML from Javascript kingmaker HTML, CSS and Javascript Coding Techniques 1 07-23-2007 07:34 AM


All times are GMT -7. The time now is 10:46 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0