Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您如何知道标题为 的列中特定行的值id:
id
row_index | id -----------+----- 0 | 54 1 | 34 2 | 12
select id where row_index = 1例如,我应该得到一个 34 的值。
select id where row_index = 1
这是datagrid.
datagrid
不完全确定你在寻找这个,无论如何你可以通过给出列名和行索引来访问特定的单元格值
var value = datagrid["id",rowindex].Value.ToString();