dev
newsgroups
Home
All Groups
Group
Topic
Archive
Search
About
how to assine current row index to the DataGridView Control
microsoft.public.dotnet.framework
10 Sep 2006 10:01 AM
Taoge
Thanks
11 Sep 2006 8:01 AM
kloakenratte
public void Set_CurrentRowIndex(int rowIndex)
{
if (this.gridView == null)
return;
CurrencyManager currencyManager =
(CurrencyManager)this.gridView.BindingContext[source];
if (currencyManager != null)
{
currencyManager.Position = rowIndex;
}
}
Other interesting topics
Statics & Interfaces
Interfaces & Constructors
Print out contents of a hashtable
RegEx substring
Proper unmanaged to managed exception handling -- SEHException and
Newsgroups sites:
Code
-
Database news
-
Security
-
Windows
-
Exchange
-
Outlook
-
Server