473,383 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Can datagrid do this?

Hi,

I wonder if it's possible for datagrid to display a grid of data, then when
the mouse moves into a row, the background color of the row changes? Of
course if mouse moves out of the row, background color changes back. If
possible, please provide a link to sample codes.

TIA
Nov 18 '05 #1
1 812
Everything is almost possible! But you will have to add a number of rows of
Javascript and seriously to make that work with a datagrid I guess therre
are two ways...

1. You can use a Single Template ItemColumn and in there have a html table
that calls on a javascript (from the TR I guess) that will do this.. then
you won't have to do anythign in the code behind really..

2. .. you can Call the TR in the rendered HTML thru the code behind and add
attrubute and call the jacascript to do this.. I think this will be messy
and hard to make a WHOLE row change.

I'm not gonna write this for you in code as it's a pretty time consuming
thing to do just for an answer but I 'm pretty sure it's possible and if I
would to do this.. I would go for the first alternative..

/Lars
"Danny Ni" <dn**@yahoo.com> skrev i meddelandet
news:uD***************@TK2MSFTNGP10.phx.gbl...
Hi,

I wonder if it's possible for datagrid to display a grid of data, then when the mouse moves into a row, the background color of the row changes? Of
course if mouse moves out of the row, background color changes back. If
possible, please provide a link to sample codes.

TIA

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Dan | last post by:
I'd like to loop through selected datagrid rows and extract specified columns from those rows. How would I do that? Thanks... Dan
0
by: Karl | last post by:
Hi all, I have naive question about datagrid. When the total record number in datagrid is less than the datagrid row number, datagrid doesn't show the vertical scrollbar. Otherwise, it shows...
0
by: Steve | last post by:
I have a datagrid that is created at run time DataGrid dgG = new DataGrid(); BoundColumn bcB; dgG.CellPadding = 5; dgG.CellSpacing = 0; dgG.GridLines = GridLines.Both; dgG.CssClass =...
4
by: cooltech77 | last post by:
hi all, I am a newbie and i need some help.I have datagrid on my asp.net page which has hyperlink columns. the datagrid configuration in the aspx page is as follows <asp:DataGrid...
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
6
by: Strahimir Antoljak | last post by:
Is it possible (and how?) to get the data grid column name based on the DataGrid.CurrentCell? The DataGrid has assigned a TableStyle comprising selected columns (DataGridTextBoxColumn) from the...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
6
by: Agnes | last post by:
I understand it is impossible, but still curious to know "Can I freeze several column in the datagrid, the user can only scroll the first 3 columns (not verical), for the rest of the coulumn, it is...
1
by: arupasna | last post by:
hi everybody, 1) I am a dotnet programmer seeking for urgent help, i have a datagrid, there is textbox. if u hit the textbox to type anything a further new datagrid window will be open. ...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.