Home All Groups Group Topic Archive Search About

how to assine current row index to the DataGridView Control

Author
10 Sep 2006 10:01 AM
Taoge
Thanks

Author
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;
   }
}

AddThis Social Bookmark Button