Custom Controls??

G

Guest

I am trying to create a custom DataGrid. I have written the custom object
as a class. I dropped a normal datagrid on to my from designer, then edited
the code to make it a customgrid instead of the datagrid. it builds fine, but
when I view the form in designer mode I get errors, and the new grid item
isnt displayed.

Member Not Found.
Object Type cannot be converted to target type.
Object Type cannot be converted to target type.

my custom object is just a class file thus:

namespace test
{
/// <summary>
/// Summary description for DataBrowser.
/// </summary>
public class DataBrowser : System.Windows.Forms.DataGrid
{
public DataBrowser()
{
//
// TODO: Add constructor logic here
//
}
}
}

I took all the code out, but still throws these errors. What am I doing
wrong?

Thanks

Steve
 
G

Guest

This is for a windows ce device. not sure if that makes a difference,
although I have created a similar control for a windows app and that works
fine!

Cheers

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top