welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Wednesday, February 1, 2012

Display onmouse over effect on gridview in



To apply gridview onmouseover row style. we follow this method…


Grid view has power full data control used in Before I wrote many articles about grid view..Still we must learn lot of things to know about grid view.
Here we shall learn about to apply onmouse over style on grid view..
To apply this style we write the code on Rowdatabound event..Its main event used to do anything on gridview.In previous article I wrote about rowdatabound event..
For your reference I mention the path here……

If you would see my previous article you must well known about load and edit grid view..
To show mouse over style you need to write the bit of code in row databound event

If e.Row.RowType = DataControlRowType.DataRow Then
            e.Row.Attributes.Add("onmouseover", "'#FFFFE1';")
            e.Row.Attributes.Add("onmouseout", "'#E0E0E0';")
        End If

Thanks for reading hope you liked it..


Post a Comment