|
|
datagrid绑定列下的数据通过绑定Button的提取 |
|
|
作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站 |
假设我在datagrid里绑定了3个列 0列和1列是相关的数据,2列是绑定的button列 我点击某一行对应的button,如何得到该列0列具体文本内容?
private void search_DataGrid_SelectedIndexChanged(object sender, System.EventArgs e) { DataGridItem dgi = (DataGridItem)search_DataGrid.SelectedItem; Label1.Text = dgi.Cells[0].Text;//用Text而不用ToString }
感谢skyeenet(一心一意进微软) ,saucer(思归),cansum396(沉觉不醒) 
|
|
相关文章:相关软件: |
|