如何在devexpress GridControl中添加行,就像我们在普通的datagridview中添加行一样。 (WinForms C#) [英] How to add rows in devexpress GridControl just like we add rows in a normal datagridview. (WinForms C#)

查看:632
本文介绍了如何在devexpress GridControl中添加行,就像我们在普通的datagridview中添加行一样。 (WinForms C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道是否有一个选项可以在devexpress GridControl中添加行,就像我们在普通的datagridview中添加行一样。



此时我没有添加行的数据表或数据源。当应用程序加载时,我应该能够手动将行插入gridview。它可以在普通的datagridview中完成,如下所示:



Hi,

I wonder if there is an option to add rows in devexpress GridControl just like we add rows in a normal datagridview.

I dont have a datatable or datasource at this point of adding rows. When the application loads, I should be able to insert rows to the gridview manually. It can be done in a normal datagridview Like this :

dataGridView1.Rows.Add();







我无法在devexpress gridview中找到一个选项来执行此操作。



谢谢

Rahul




I cant find an option in devexpress gridview to do this.

Thanks
Rahul

推荐答案

有很多方法..要向gridcontrol添加一个简单的行,请使用以下代码

A lot of methods are there.. To add a simple row to the gridcontrol use the following code
gridView1.AddNewRow();


这篇关于如何在devexpress GridControl中添加行,就像我们在普通的datagridview中添加行一样。 (WinForms C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆