471,337 Members | 888 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Custom Datagrid problem with a custom property

I am creating a custom datagrid that inherits from the
System.Web.UI.WebControls.DataGrid. I'm trying to add a property
called ScrollHeight which is of type Unit. Whenever I try to edit the
property from the Visual Studio designer I get the message "Invalid
property value - Not Implemented". Yet when I go to the HTML and enter
the attribute on the tag it works fine.
<cc1:MyDataGrid id="grid1" runat="server"

What am I missing to get this to work from the Properties screen in the

Below is some code from the datagrid:

[ToolboxData("<{0}:MyDataGrid runat=server></{0}:ISDataGrid>")]
public class ISDataGrid : System.Web.UI.WebControls.DataGrid,
[ Category("Layout") ]
public Unit ScrollHeight
get {
return (Unit) ViewState["ScrollHeight"];
set {
ViewState["ScrollHeight"] = value;

Jul 21 '05 #1
0 882

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Job Lot | last post: by
7 posts views Thread by Jed | last post: by
4 posts views Thread by Steve | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.