C# 获取行的索引
我正在使用windows应用程序 我用dataadapter加载一个数据集,然后将该数据集链接到我表单中的ControlsTextBox。 现在我想知道每次显示的是哪一行。C# 获取行的索引,c#,dataset,indexing,C#,Dataset,Indexing,我正在使用windows应用程序 我用dataadapter加载一个数据集,然后将该数据集链接到我表单中的ControlsTextBox。 现在我想知道每次显示的是哪一行。 谢谢。我想,你应该参考这篇文章 或者试试下面的代码 BindingSource bs = new BindingSource(new your data set ,""); bs.Current will give you the current item in the your set. 我在表单中将此数据集链接到
谢谢。我想,你应该参考这篇文章 或者试试下面的代码
BindingSource bs = new BindingSource(new your data set ,"");
bs.Current will give you the current item in the your set.
我在表单中将此数据集链接到我的ControlsTextBox,您是如何做到这一点的?如果您想要正确的答案,请更具体地说明您的设计。我们不在你的脑子里