Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 28th, 2006, 11:06 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default infragistic webgrid control

hi ,
 can some body plz tell me how to do a mouseover event for a particular element in a column..
 
Old September 29th, 2006, 12:00 AM
Authorized User
 
Join Date: Sep 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

u will have to use html(or css or javascript) at best for that purpose.

 
Old October 3rd, 2006, 10:05 AM
Registered User
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

write this code in RowDatabound of GridView (ASp.net 2)


if (e.Row.RowState == DataControlRowState.Normal)
                {
                    e.Row.Attributes.Add("onmouseover", "chgBg(this,'#ADCBE6')");
                    e.Row.Attributes.Add("onmouseout", "chgBg(this,'#F8FBFC')");
                                   }
                if (e.Row.RowState == DataControlRowState.Alternate)
                {
                    e.Row.Attributes.Add("onmouseover", "chgBg(this,'#ADCBE6')");
                    e.Row.Attributes.Add("onmouseout", "chgBg(this,'#E6F0F5')");
                 }

Rishi
 
Old October 3rd, 2006, 10:09 AM
Registered User
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

for any particular element in Row/Column

use
 if (e.Row.RowIndex == 0)//desired row's index
                {
e.Row.Cells[i].Attributes.Add("onmouseover", "chgBg(this,'#ADCBE6')");//new color
e.Row.Cells[i].Attributes.Add("onmouseover", "chgBg(this,'#ADCBE6')");//color previous
}



Rishi





Similar Threads
Thread Thread Starter Forum Replies Last Post
Infragistic Grid Loses control by row click madhavan ASP.NET 1.0 and 1.1 Professional 2 April 29th, 2008 01:28 AM
Infragistic Ultrawebgrid myself.panku ASP.NET 2.0 Professional 0 March 17th, 2008 12:45 PM
how to connect xml file to webgrid of infragistics it_ashu2004 ASP.NET 1.0 and 1.1 Professional 0 March 25th, 2007 07:49 AM
webdatechooser (Infragistic 5.2) suzila ASP.NET 1.0 and 1.1 Basics 0 October 18th, 2006 02:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.