I'm trying to build my own composite control. It should contain some
buttons and a DataGrid.
I have some questions.
1. How can I make the properties of the grid visible inside the editor and
most important how can I get the editor to save them. Making the properties
visible is not that hard, getting the editor to save them in the xml thing
is impossible.
2. As a workaround for the prior problem, I tried to "forward" the property
one level.
property Columns : DataGridColumnCollection read GetColumns;
function BimWebGrid.GetColumns: DataGridColumnCollection;
begin
Result := FGrid.Columns;
end;
The property is now shown, but the editor is totally different from the
datagrid.columns editor. So I tried to place the right editorattribute,
[Editor('System.Web.UI.Design.WebControls.DataGridColumnCollectionEditor,
System.Design, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a', typeof(UITypeEditor))]
I now that the editor is now replaced, because it is no longer working.
---------------------------
Error
---------------------------
Specified cast is not valid.
---------------------------
OK
---------------------------
How the hell can I get this working? If I could get Prob 1 solved, problem
2 can be skipped.
Kind regards