-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: BanwariLal
Message 2 in Discussion
Hello Pavan,
Though I am a newbie to .NET. So I just can't say how will u reference datagrid.
What I think, u must be able to assign a javascript function on
'onClick' event of datagrid.
If so, Try this approach. call this function on 'onClick' event as
onClick="DisplayContent()"
/*********************************************/
function DisplayContent()
{
if ( event.srcElement ) var src = event.srcElement;
else var src = e.target;
var tr;
if ( src.tagName && src.tagName != "TABLE" ) // Element
generating
event must not be 'Table'
{
while (tr != "TR") // Search for 'TR'
{
src = src.parentElement;
if ( src.tagName ) tr = src.tagName;
}
for ( var i = 0 ; i < src.children.length ; i++ ) //
Check, how
many columns are there.
{
alert ( src.children[i].innerText ); // Here
you can access all
columns value one by one.
}
}
}
/****************************************************/
I hope, it will return u all the contents of row one by one. U can use
them further, as per ur need.
Regards,
--
Banwari Lal Sharma,
Software Developer,
Veracious Solutions, Bhopal
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]