开发者

C#: How to add static rows/data to DataGridView?

I want to preview content in the datagridview inside Design view using visual studio 2010. I know how to program in some data but I'm wondering if I can add the data manually so开发者_运维知识库 that I can preview it without building.


I don't think this is possible through the designer (see here). The best you can do is see what columns are present in your data source, but even adding a data source from the DataSources tab will not populate the grid.


You can derive a form/usercontrol from the one in question and you will see the results of changing the base class in the derived class's designer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜