相比你用DataGrid取不出来值,会好些吧!
没有选中之类的属性?没有我也没法了,主要是没用过2005,不知道和现在版本有什么区别
DataGrid不能获取一行所有的值吧。 用DataGridview吧
SelectedItem
string value = ""; DataGridViewSelectedRowCollection dr = dataGridView1.SelectedRows; DataGridViewRow dgr = dr[0]; for(int i=0;i<dgr.Cells.Count;i++) { value += dgr.Cells[i].Value; }
2005有ListView吗?ListView能行
111,129
社区成员
642,532
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧