By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

NuB datagrid question

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.