473,659 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

highlighting arow--urgent

how to highlight a row of my datagrid (web) .

i dont want to use select button.

upon clicking on the row , it shouls be highlighted and
cursor shouls remain in the same row.

how to acheive it?
plz help me out
Nov 18 '05 #1
2 1111
I'm not sure there is a way to highlight a row in the
DataGrid control supplied in .NET. You could try
inserting events as attributes, but I'm not sure if it's
possible.

We wrote our own grid control specific to our needs and
used three styles to represent normal rows, selected rows,
and the currently selected (highlighted) row. Then we
used the onclick event to change the class of the row when
clicked, keeping track of the last row highlighted (in
JavaScript) so it could be reset. We found that an
onclick event on every row really slowed down rendering of
the page with big grids, so we moved the onclick event to
the table and relied on event bubbling/cascading to catch
it.

Also, Infragistics has a very good grid control for
ASP.NET that will do what you want and more. Check out
http://www.infragistics.com.

- Dave Davidson (MCP)
-----Original Message-----
how to highlight a row of my datagrid (web) .

i dont want to use select button.

upon clicking on the row , it shouls be highlighted and
cursor shouls remain in the same row.

how to acheive it?
plz help me out
.

Nov 18 '05 #2
You're gonna have to prbly use DHTML behaviours. There's some stuff on MSDN
that shows how. I personally haven't worked with that

"Dave Davidson" <da************ @microsoft3.com > wrote in message
news:08******** *************** *****@phx.gbl.. .
I'm not sure there is a way to highlight a row in the
DataGrid control supplied in .NET. You could try
inserting events as attributes, but I'm not sure if it's
possible.

We wrote our own grid control specific to our needs and
used three styles to represent normal rows, selected rows,
and the currently selected (highlighted) row. Then we
used the onclick event to change the class of the row when
clicked, keeping track of the last row highlighted (in
JavaScript) so it could be reset. We found that an
onclick event on every row really slowed down rendering of
the page with big grids, so we moved the onclick event to
the table and relied on event bubbling/cascading to catch
it.

Also, Infragistics has a very good grid control for
ASP.NET that will do what you want and more. Check out
http://www.infragistics.com.

- Dave Davidson (MCP)
-----Original Message-----
how to highlight a row of my datagrid (web) .

i dont want to use select button.

upon clicking on the row , it shouls be highlighted and
cursor shouls remain in the same row.

how to acheive it?
plz help me out
.

Nov 18 '05 #3

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

Similar topics

9
4318
by: Jay Davis | last post by:
I use xemacs and syntax highlighting for my IDE, but I'm not a big fan of the default syntax highlighting colors. For instance, in 'def fun():' both 'def' and 'fun' are the same color. I kind of like the vim colors, but what would be really useful is to find various examples of highlighting that people have used, to see which ones just look right. I looked through google groups but didn't find any source of highlighting examples. Is...
1
5674
by: Nic | last post by:
Hi - I am battling to find the a resource, so maybe some one in here can help The problem is as follows: I am trying to build a mod_perl source code editor for the web - to edit Perl source code in a browser. The trick is that I want to add syntax highlighting to a HTML TEXTAREA tag. There are millions of resources for just normal text color and background colors (and images), but nothing on keyword highlighting.
3
7911
by: Mark | last post by:
Hi there, I have a subform, set as a continuous form. When a user selects a particular record in that subform, how can I make that particular record stand out (color or font change, size, etc) from the other records in the list? Thank you in advance, Mark
4
7613
by: Bob hotmail.com> | last post by:
Everyone I have been spending weeks looking on the web for a good tutorial on how to use regular expressions and other methods to satisfy my craving for learning how to do FAST c-style syntax highlighting in C# but I have yet to find anything useful I know there are people at MS that know this stuff like the front of their hand and I know there are many people out on the web that are proficient in doing this as well but it seems nobody...
0
1657
by: Brian Scott | last post by:
I am currently trying to control the syntax highlighting of a richtextbox control whilst the user types. At the moment I have implemented a thread which calls the richTextBox.Invoke on a method that parses each line of the richTextBox and highlights specific words with a given color. I have been highlighting each of the words by using the Select method and changing the selection color beforehand. This works fine until the contents of the...
4
2791
by: Patrick Porter | last post by:
Arrrgh! I have tried everything (ok, not EVERYTHING) but i cant get solve the problem of getting syntax highlighting in a rich textbox. in the code below, im attempting to highlight all of the words "ax". the matches works fine, but i cant get the highlighting to work correctly. any help? thanks, patrick Private Sub rtbCode_TextChanged(ByVal sender As System.Object, ByVal e As
2
2617
by: rockstar_ | last post by:
Hello all- I'm developing a Content Management software for my own site, and possibly package and deploy to other sites (for friends, family, etc.) The content management software is combined blog, photo, and site management tools. One the of the tools I would find INREDIBLY helpful is the ability to block out and syntax highlight code. I would like to be able to, as I'm writing a blog post about something I've done in Python (for...
11
2288
by: Christoph Burschka | last post by:
Are there any free PHP libraries/utility functions that can color the syntax of various programming languages (eg. Java and C++)? I am posting code snippets on my site and would like to know if there is a way to easily give them syntax highlighting automatically. Thanks! -- Christoph Burschka <christoph.burschka@rwth-aachen.de>
7
2327
by: Leif902 | last post by:
After much searching of google, the closest I can find is highlighting search terms... however, this is not what I wanted to do. Does anyone know how to parse through a specific element (lets say the innerHTML of a div) and add tags to change the styles of several keywords? For instance, I might want the words "and", "or" and "xor" to be bold and the words "c_white", "c_red" and "c_orange" to appear as maroon... (it's for a syntax...
0
2386
by: Scott | last post by:
Hi, I think I may have finally found a IDE/text editor that I like, but, it still haves one problem. Geany haves syntax highlighting, but it is not very good for Python. It only seems to have a couple different colours. One for text and another for modules/classes/ functions. Is it possible to change the syntax highlighting for Python, so it highlights more and uses more different colours? I really liked the syntax highlighting for...
0
8332
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.