Show the ordinal number of a row in a dataset

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to build a lookup dialog form that uses the row index number to view a
particular row. How do I show the row index number a datagrid so a user can
select it?

Thanks
 
Hi:
I think you must use CurrencyManager .
CurrencyManager have a position attribute, you can
use it as index number.
DataTable have no cursor function, so try CurrencyManager and DataView.
 
Chris, what exactly is the number you need? The dataGrid has an IsSelected
property that will show you if a row is selected or not - but I'm not sure
if that's what you need. As Yonggangwang mentinoed, the currencymanager may
do it for you as well.
 
I was looking for an row index number, so that the user could type the number
into a textbox, hit enter and open a form for that record. I'll take a look
at the currencymanager to see if that will work for me.

Thanks
Chris
 
Sounds like a lot of work for the user. Why not just let them double-click
or equivalent on the row?

Jeff
 
Jeff,

I've always been partial to keyboard entry, rather than the mouse, when it
comes to mass data-entry in a financial application. I wouldn't leave the
mouse events empty, but I also don't like to force a user to have to perform
a task with a mouse, if the user is more comfortable with a keyboard.
 
Then hit Enter with the highlighted row. Still seems like a lot of work.
Sounds like the UI on AOL Messenger, which is the silliest interface I've
ever seen for managing a list.

Jeff
 
Back
Top