Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Which datarow is showing?
 

Which datarow is showing?

Hi!

Is there an easy way to find which datarow in a datatable is 'open' and showing its field values in various textboxes on a form? [I'm not using a datagrid so can't use its current row property]

Do I have to use CurrencyManager or is there a more direct way, e.g. something like:

int rowNum = myDataSet.Tables["MyTable"].Rows.OpenRow;  

Thank you for any and all help.

John F.
johnof  Friday, November 18, 2005 9:34 AM
Only CurrencyManagery holds the current row/item/position. Even if you use datagrid you cannot use CurrentRowIndex because it's not necesarily the same as the index of the row in the data source.
Mike Danes  Friday, November 18, 2005 1:43 PM
Only CurrencyManagery holds the current row/item/position. Even if you use datagrid you cannot use CurrentRowIndex because it's not necesarily the same as the index of the row in the data source.
Mike Danes  Friday, November 18, 2005 1:43 PM

You can use google to search for other answers

Custom Search

More Threads

• help me
• how to change resolution with vb.net 2005
• Using Both Data Binding & Programmatic Access
• comboboxcolumn in datagridview
• Listbox XML file databining
• want to learn how to write code for different controls in windows forms
• How do I save a null value to an int column in a SQL database?
• Attaching a network database in MSSQL
• DataGridView: Stopping enter key from moving focus to next row
• Sorting a DataGridView Programatically