how to set the cell value in dynamic datagrid in wpf using c#

落爺英雄遲暮 提交于 2020-01-11 12:55:09

问题


I got row id and column id

dataGrid2.Items[row].Cells[column].Text = "text";
row = row index;
column = column index;

回答1:


you can simply update the value of the underlying datasource and its show in your datagrid. you dont need any index stuff



来源:https://stackoverflow.com/questions/17106708/how-to-set-the-cell-value-in-dynamic-datagrid-in-wpf-using-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!