Wednesday, June 6, 2007

Mouse Hover effect on asp.net datagrid.

Here is the code for mouse hover effect in ASP.NET using C#.

I have written a another code for mouse hover effect in asp.net data gird. You can do both for alternating item and item rows.

First You have to create a item created event of datagrid and paste the following...


private void datagrid_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType==ListItemType.AlternatingItem)
{
e.Item.Attributes.Add("OnMouseOver", "this.style.backgroundColor = 'lightblue';");
e.Item.Attributes.Add("OnMouseOut", "this.style.backgroundColor = '#E5F2FA';");
}
else if(e.Item.ItemType==ListItemType.Item)
{
e.Item.Attributes.Add("OnMouseOver", "this.style.backgroundColor = 'lightblue';");
e.Item.Attributes.Add("OnMouseOut", "this.style.backgroundColor = 'white';");
}
}
Share:

Great ASP.NET Datagrid Search Articles.

I have found some great ASP.NET Data grid articles. Please go through it.

1) Drill down Data grid Searching with ASP.NET:

This articles provide all the information to develop basic search in asp.net datagrid.

here is the link:http://www.sitepoint.com/article/datagrid-searching-asp-net

2) Highlighting Multiple Searching Keywords for ASP.NET Datagrid.

This article describes how to highlight searching keyword in asp.net datagrid with the help of
.css files
Share:

ASP.NET Free WebHosting

Hurray, I have found a great free web hosting with ASP.NET 2.0 support. Brinkster People provide free ASP.NET hosting following supports.



  • Package Features.
    30 mb web space
    500 MB WEB TRAFFIC (limited to 16.7 mb web traffic per day)
    1 brinkster.net e-mail account with 10 mb space
    24/7/365 E-MAIL SUPPORT
    Brinkster control panel

  • Supported Technologies.

    ASP 3.0
    ASP.NET
    xml 4.0
    wap enabled
    flash enabled
    ssi - server side includes
    MDAC 2.8
    MS ACCESS
    .NET MOBILE INTERNET TOOLKIT
    ONLINE FILE MANAGER

For more Details please visit :http://www.brinkster.com/hosting/FreeDeveloper.aspx

Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews