0

ユーザーコントロール GridEx:UserControl を作成しました。そのコントロールに GridControl (DevExpress データグリッド コントロール) を配置しました。内部データグリッド コントロールを返すプロパティ DataGrid を作成しました (以前に追加されました) DataGrid のデザイン サポートを有効にするにはどうすればよいですか? 入れてみます

[Designer("DevExpress.XtraGrid.Design.GridControlDesigner,
    DevExpress.XtraGrid.v8.2.Design", typeof(IDesigner))] 

しかし、私はこのエラーを受け取ります: コンポーネント 'DataGridControl' を作成できませんでした。
エラーメッセージは次のとおりです。

System.NullReferenceException: Object reference not set to an instance of an object.
  at DevExpress.XtraGrid.Design.GridControlDesigner.Initialize(IComponent component)
  at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
  at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
  at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design. IDesignerHost.CreateComponent(Type componentType, String name)
   at System.ComponentModel.Design.DesignerHost.System.ComponentModel. Design.IDesignerHost.CreateComponent(Type componentType)
   at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host)
   at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues)
   at System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)
   at System.Windows.Forms.Design.OleDragDropHandler.Cre...
4

2 に答える 2

0

ソリューションはここで見つけることができます:

http://www.devexpress.com/kb=A577

于 2009-02-24T08:20:14.360 に答える