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
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