如何在位置添加WPF DataGrid列 [英] How to add wpf datagrid column with position
本文介绍了如何在位置添加WPF DataGrid列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我如何以编程方式通过索引添加新列?
我知道这个:
Hello guys how i can add new column with programatically with index?
I know this:
DataGridTextColumn txtcQuantity = new DataGridTextColumn();
dataGrid1.Columns.Add(txtcQuantity);
但我想txtc在列Price和列totalPrice之间
希望有人可以帮助我
but i want to txtc was between column Price and column totalPrice
hope someone can help me
推荐答案
使用dataGrid1.Columns.Insert
这篇关于如何在位置添加WPF DataGrid列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文