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...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, Just create datagrid server tag as follows <asp ataGrid ID="MyDataGrid" runat="server"></asp ataGrid>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; } } } |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |