Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am trying to access current selected gridview cell in javascript.provide soln.thanx

Hi Vijay,
U can follow this link. Actually it is related to jquery.[^]

Different kinds of selectors are given here. Hope it is useful for u.
Share this answer
Hi Vijay,

Kindly look into this link.......[^]

This might be very useful then previous one.
Share this answer
Abhijit Parab 20-Sep-12 3:23am    
See vithal,
Instead of distracting him again and again. better to post answer here as he is checking for updates after regular interval. I have posted what i understood from his question.
Better provide solution or suggestion related to the answer rather then going personally. In future should not post such comments like seating arrangements or telling verbally this may spoil your and my reputation. Others may create doubt about our membership.
Please don't do this again
Abhijit Parab 20-Sep-12 5:37am    
I dont want to fight vijay with anyone. But just see the comment bcoz not only u and me but also all over the world users are using this site. what they will think. We are here to learn and help others not make such irrelevent comments.
I appologies if i have said something wrong.

i got answer
javascript code

var gdv=document.getElementById('gridviewId');
var activeCell=gdv.document.activeElement.cellIndex;
var activeRowIndex=gdv.document.activeElement.parentElement.rowIndex;

so my selected cell in activeRowIndex row with cell index activeCell
Share this answer
Abhijit Parab 20-Sep-12 5:03am    
Congrats Vijay..............
All the best :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900