Select Item from datagrid - need help

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
H

Harry Simpson

All right, how does one display a grid in CF that allows the user to select
from the grid a row as the selected record?

I've messed around with the MouseUp but i only get MouseEventArgs of x:40
y:46.....and sender is datagrid but in debug it won't let me access the
datagrid properties.

How do i capture the row the user selected - in what event?

TIA much!!

Harry
 
Have you tried the .CurrentCell property or the CurrentRowIndex? You should
be able to use either of the events you mentioned.


Harry Simpson said:
All right, how does one display a grid in CF that allows the user to select
from the grid a row as the selected record?

I've messed around with the MouseUp but i only get MouseEventArgs of x:40
y:46.....and sender is datagrid but in debug it won't let me access the
datagrid properties.

How do i capture the row the user selected - in what event?

TIA much!!

Harry
--

W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
 
Hello Harry,

You can use the CurrentCellChanged event to determine when selection
changes and the CurrentRowIndex property to determine the current row.

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Harry Simpson" <[email protected]>
| Subject: Select Item from datagrid - need help
| Date: Thu, 24 Jun 2004 07:31:50 -0500
| Lines: 14
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 66.89.73.130.ptr.us.xo.net 66.89.73.130
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
..phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:55891
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| All right, how does one display a grid in CF that allows the user to
select
| from the grid a row as the selected record?
|
| I've messed around with the MouseUp but i only get MouseEventArgs of x:40
| y:46.....and sender is datagrid but in debug it won't let me access the
| datagrid properties.
|
| How do i capture the row the user selected - in what event?
|
| TIA much!!
|
| Harry
|
|
|
 
Back
Top