<bdo id='gKTTm'></bdo><ul id='gKTTm'></ul>
  • <small id='gKTTm'></small><noframes id='gKTTm'>

      <tfoot id='gKTTm'></tfoot>

      1. <legend id='gKTTm'><style id='gKTTm'><dir id='gKTTm'><q id='gKTTm'></q></dir></style></legend>
        <i id='gKTTm'><tr id='gKTTm'><dt id='gKTTm'><q id='gKTTm'><span id='gKTTm'><b id='gKTTm'><form id='gKTTm'><ins id='gKTTm'></ins><ul id='gKTTm'></ul><sub id='gKTTm'></sub></form><legend id='gKTTm'></legend><bdo id='gKTTm'><pre id='gKTTm'><center id='gKTTm'></center></pre></bdo></b><th id='gKTTm'></th></span></q></dt></tr></i><div id='gKTTm'><tfoot id='gKTTm'></tfoot><dl id='gKTTm'><fieldset id='gKTTm'></fieldset></dl></div>

        c#使用数据源隐藏datagridview中的属性

        c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)

          <small id='wWp4B'></small><noframes id='wWp4B'>

              <tbody id='wWp4B'></tbody>

            1. <legend id='wWp4B'><style id='wWp4B'><dir id='wWp4B'><q id='wWp4B'></q></dir></style></legend><tfoot id='wWp4B'></tfoot>
                • <bdo id='wWp4B'></bdo><ul id='wWp4B'></ul>
                • <i id='wWp4B'><tr id='wWp4B'><dt id='wWp4B'><q id='wWp4B'><span id='wWp4B'><b id='wWp4B'><form id='wWp4B'><ins id='wWp4B'></ins><ul id='wWp4B'></ul><sub id='wWp4B'></sub></form><legend id='wWp4B'></legend><bdo id='wWp4B'><pre id='wWp4B'><center id='wWp4B'></center></pre></bdo></b><th id='wWp4B'></th></span></q></dt></tr></i><div id='wWp4B'><tfoot id='wWp4B'></tfoot><dl id='wWp4B'><fieldset id='wWp4B'></fieldset></dl></div>
                  本文介绍了c#使用数据源隐藏datagridview中的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我认为必须有一个属性来隐藏数据网格视图中的公共属性.但我找不到它.

                  I think there must be an attribute to hide a public property from the datagridview. But I can't find it.

                  推荐答案

                  如果你自己添加列...不要添加你不想要的列.

                  If you are adding the columns yourself... don't add the columns you don't want.

                  如果您启用了 AutoCreateColumns,则:

                  • 如果是基于类的模型,则将 [Browsable(false)] 添加到不需要的属性中
                  • 或将列的 .Visible 设置为 false
                  • 或者干脆删除之后不需要的列
                  • if it is a class-based model, add [Browsable(false)] to properties you don't want
                  • or set the column's .Visible to false
                  • or simply remove the columns you don't want afterwards

                  这篇关于c#使用数据源隐藏datagridview中的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Accessing attribute info from DTE(从 DTE 访问属性信息)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  How can I force the PropertyGrid to show a custom dialog for a specific property?(如何强制 PropertyGrid 显示特定属性的自定义对话框?)
                  Associate attribute with code generated property in .net(将属性与 .net 中的代码生成属性相关联)
                  C# Attributes and their uses(C# 属性及其用途)
                  • <legend id='kMtLN'><style id='kMtLN'><dir id='kMtLN'><q id='kMtLN'></q></dir></style></legend>

                          <tbody id='kMtLN'></tbody>

                      1. <tfoot id='kMtLN'></tfoot>
                          <bdo id='kMtLN'></bdo><ul id='kMtLN'></ul>

                          <i id='kMtLN'><tr id='kMtLN'><dt id='kMtLN'><q id='kMtLN'><span id='kMtLN'><b id='kMtLN'><form id='kMtLN'><ins id='kMtLN'></ins><ul id='kMtLN'></ul><sub id='kMtLN'></sub></form><legend id='kMtLN'></legend><bdo id='kMtLN'><pre id='kMtLN'><center id='kMtLN'></center></pre></bdo></b><th id='kMtLN'></th></span></q></dt></tr></i><div id='kMtLN'><tfoot id='kMtLN'></tfoot><dl id='kMtLN'><fieldset id='kMtLN'></fieldset></dl></div>

                          <small id='kMtLN'></small><noframes id='kMtLN'>