设计人员生成的代码 [英] designer generated code

查看:65
本文介绍了设计人员生成的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有网格,我们正在使用超过250列以上的列.
在基于用户在运行时显示网格时,我们正在显示列.

我的问题是:我们在设计时创建了所有这些列,因此我为设计器生成了250多个列的代码.

这是个好方法,否则我必须在运行时创建列.

问候,
Pritesh

Hi

I have grid where more then 250+ columns we are using.
While displaying grid at run-time base on user we are showing columns.

my question is : all this columns we created at design time so i have designer generated code for 250+ columns.

this is good approach or i have to create column at run-time.

Regards,
Pritesh

推荐答案

基于用户,您正在显示列意味着列即将从数据库中移出.因此,我建议您创建自定义表/数据集并将其与您的datagrid绑定

对不起,我误会了.
我认为您必须使用desinger生成的代码.
Based on user you are showings columns means columns are coming form database. so I suggest you to create custmize table/dataset and bind it with your datagrid

sorry for my misunderstanding.
I think you have to use desinger generated code.



列不是来自数据库的.我正在使用devexpress网格,用户将在其中选择一些列,然后应用程序将这些列保存在用户PC的xml文件中.
问候,
Pritesh
Hi,
Columns are not comming from DB. I am using devexpress grid where user will select some of columns and application save these columns in xml file in user PC.

regards,
Pritesh


这篇关于设计人员生成的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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