【发布时间】:2018-11-27 19:28:25
【问题描述】:
我有一个显示数据表的winform
33 Bulbasaur Seed Pokémon A strange seed was planted on its back at birth. The plant sprouts and grows with this POKéMON. 8.4 146.5
34 Ivysaur Seed Pokémon When the bulb on its back grows large, it appears to lose the ability to stand on its hind legs. 3.6 182.9
35 Venusaur Seed Pokémon The plant blooms when it is absorbing solar energy. It stays on the move to seek sunlight. 10.2 52.5
单击第 33 行后,我只想获得它的信息。
DataTable dtbl = new DataTable();
DataRow[] dtr = dtbl.Select();
这个dtr 包含所有三个条目。我怎样才能只有我选择的一行?我知道如何获取特定行,但不知道用户单击选择的行。
【问题讨论】:
-
如何点击数据表中的一行?他们没有用户界面
-
wpf 或 winform 程序?