473,406 Members | 2,620 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,406 software developers and data experts.

NuB datagrid question

I'm new the asp.net world and datagird world.

On my datagrid I want to highlight the row the user clicks on then allow
them to move up and down in my grid via the arrows.

how can i do that, can it be done, and is there any examples i can look at?

thx
Nov 18 '05 #1
6 1021
The highlighting of the selected row is automatic. You'll have to code the
keypress event and check for the arrow keys and change the selected row to
one more or less than the selectedItemIndex.
"Mike" <ba*******@sbcglobal.net> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
I'm new the asp.net world and datagird world.

On my datagrid I want to highlight the row the user clicks on then allow
them to move up and down in my grid via the arrows.

how can i do that, can it be done, and is there any examples i can look at?
thx

Nov 18 '05 #2
My row in the grid isn't highlighted.
am i missing something for that to happen?
"Scott M." <s-***@nospam.nospam> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
The highlighting of the selected row is automatic. You'll have to code the keypress event and check for the arrow keys and change the selected row to
one more or less than the selectedItemIndex.
"Mike" <ba*******@sbcglobal.net> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
I'm new the asp.net world and datagird world.

On my datagrid I want to highlight the row the user clicks on then allow
them to move up and down in my grid via the arrows.

how can i do that, can it be done, and is there any examples i can look

at?

thx


Nov 18 '05 #3
Change the selected row style in the designer.

"Mike" <ba*******@sbcglobal.net> wrote in message
news:e9*************@tk2msftngp13.phx.gbl...
My row in the grid isn't highlighted.
am i missing something for that to happen?
"Scott M." <s-***@nospam.nospam> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
The highlighting of the selected row is automatic. You'll have to code

the
keypress event and check for the arrow keys and change the selected row to one more or less than the selectedItemIndex.
"Mike" <ba*******@sbcglobal.net> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
I'm new the asp.net world and datagird world.

On my datagrid I want to highlight the row the user clicks on then allow them to move up and down in my grid via the arrows.

how can i do that, can it be done, and is there any examples i can
look at?

thx



Nov 18 '05 #4
I'm not seeing that option, unless I'm looking in the wrong place.

Is it under "Property Builder -->Format -> Selected Items?

if so i don't see that option here to highlight the row automaticlly

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:eR**************@TK2MSFTNGP12.phx.gbl...
Change the selected row style in the designer.

"Mike" <ba*******@sbcglobal.net> wrote in message
news:e9*************@tk2msftngp13.phx.gbl...
My row in the grid isn't highlighted.
am i missing something for that to happen?
"Scott M." <s-***@nospam.nospam> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
The highlighting of the selected row is automatic. You'll have to
code
the
keypress event and check for the arrow keys and change the selected
row to one more or less than the selectedItemIndex.
"Mike" <ba*******@sbcglobal.net> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
> I'm new the asp.net world and datagird world.
>
> On my datagrid I want to highlight the row the user clicks on then allow > them to move up and down in my grid via the arrows.
>
> how can i do that, can it be done, and is there any examples i can look at?
>
> thx
>
>



Nov 18 '05 #5
I found it
"Mike" <an*******@discussions.microsoft.com> wrote in message
news:Ol**************@tk2msftngp13.phx.gbl...
I'm not seeing that option, unless I'm looking in the wrong place.

Is it under "Property Builder -->Format -> Selected Items?

if so i don't see that option here to highlight the row automaticlly

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:eR**************@TK2MSFTNGP12.phx.gbl...
Change the selected row style in the designer.

"Mike" <ba*******@sbcglobal.net> wrote in message
news:e9*************@tk2msftngp13.phx.gbl...
My row in the grid isn't highlighted.
am i missing something for that to happen?
"Scott M." <s-***@nospam.nospam> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
> The highlighting of the selected row is automatic. You'll have to code the
> keypress event and check for the arrow keys and change the selected

row
to
> one more or less than the selectedItemIndex.
>
>
> "Mike" <ba*******@sbcglobal.net> wrote in message
> news:uh**************@TK2MSFTNGP12.phx.gbl...
> > I'm new the asp.net world and datagird world.
> >
> > On my datagrid I want to highlight the row the user clicks on then

allow
> > them to move up and down in my grid via the arrows.
> >
> > how can i do that, can it be done, and is there any examples i can

look
> at?
> >
> > thx
> >
> >
>
>



Nov 18 '05 #6
Just go to the properties page for the datagrid, and look at the
selected item styles there.
Forecolor, backcolor, border, etc. can be changed. That should do a
decent job of highlighting.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #7

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

Similar topics

2
by: magister | last post by:
Hello, I have xml like this.... <test> <question>sdfsa</question> <section><question>43ga</question> <question>asdf</question> </test>
2
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know...
2
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of...
4
by: Jan Nielsen | last post by:
Hi all I'm a former Access developer who would like to implement a many-to-many relation in about the same way you do in Access: With a subform and a combo box. Is it possible to use a...
13
by: pmcguire | last post by:
I have a DataGrid control for which I have also created several new extended DataGridColumnStyles. They behave pretty nicely, but I can't figure out how to implement Selected Item formatting for...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.