Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Get the position in a DataGridView

Reply
 
Old 04-22-2008   #1 (permalink)
Rafael Soteldo


 
 

Get the position in a DataGridView

Hi there:

I need to get the position of a given DataRow to navigate directly to it
with a BindingSourceNavigator.

I have a BindingSourceNavigator and several textboxes showing each field of
a given table.

My BindingSource.DataSource is a DataTable, I need to navigate directly to a
row that has a specific value in a field (i.e: "Carl" in DataTable named
"People"), I suppose I should know the rows position in the DataTable, in
order to set the BindingSource.Position and make the textboxes show this
entire row.

But, what if the DataSource is a DataView with filters set, it won't relate
with the position of that row in the actual table, so, what should I do?

Please, help...
--

Rafael Soteldo

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Image in DataGridView from SQL .NET General
DataGridView new row .NET General
Re: datagridview .NET General
Refeshing a DataGridView .NET General
Problems Using DataGridView PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46