By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,154 Members | 2,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,154 IT Pros & Developers. It's quick & easy.

Access CheckBox in GridView by row index with javascript

P: 6
Hi there,
I have a problem to access a checkbox inside GridView using
row index using javascript.
Here is the code:
var c;
var cellValue;
var rCount = 0;
var cellControl;

gridViewCtl = document.getElementById("ctl00_ContentPlaceHolder1 _gvQueue_Queue");
rCount = gridViewCtl.rows.length;
for(c=2; c<=rCount; c++)
var row = gridViewCtl.rows[c];
cellValue = getCellValue(c,10); // Gets value in the 10 cell - OK
cellControl = getCellControl(c,1); // Trying to get check box in 1 cell
// alert(cellControl);
if( cellValue == "Test" )

function getCellControl(rowIdx, colIdx)
var gridCell = getGridColumn(rowIdx, colIdx);

if (null != gridCell)
// here is the isse
if(gridCell.type =="checkbox")
else{alert("-" + gridCell.type);}
return gridCell.controls;
return null;

Thanks for your help

Dec 6 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,197
I am moving this to the Access forum.
Dec 6 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.