2010-12-02 110 views
0

我正在使用Windows應用程序。獲取行索引

我使用dataadapter加載數據集。然後我將這個數據集鏈接到我的表單中的控件(文本框)。 現在我想知道每次顯示的行是什麼。 謝謝。

+0

我在我的表格數據集鏈接到我的控件(文本框),你是如何做到這一點? – TalentTuner 2010-12-02 09:43:19

回答

0

我想,你應該參考這個ARTICAL

Binding

,或者嘗試下面的代碼

BindingSource bs = new BindingSource(new your data set ,""); 
    bs.Current will give you the current item in the your set.