开发者

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

开发者 https://www.devze.com 2023-02-13 07:13 出处:网络
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 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

精彩评论

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