本文主要是介绍GridControl 的FindControl按钮翻译,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
效果如下:
代码如下
private void GridView1_Layout(object sender, EventArgs e){var m_FindControl = this.gridView1.GridControl.Controls.OfType<FindControl>().FirstOrDefault();if (m_FindControl != null){foreach (var item in m_FindControl.Controls){if (item is LayoutControl layout){foreach (var itemControl in layout.Controls){if (itemControl is DevExpress.XtraEditors.SimpleButton button){switch (button.Text)
这篇关于GridControl 的FindControl按钮翻译的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!