S
Steve Richter
here is an error I get when I open my class library project:
"The class ResultsTable can be designed, but is not the first class in
the file. Visual Studio requires that designers use the first class in
the file. Move the class code so that it is the first class in the
file and try loading the designer again."
What does that mean, "the class xxx can be designed"?
thanks,
-Steve
here is the class:
// ------------------ ResultsTable ----------------------
public class ResultsTable : System.Data.DataTable
{
public ResultsTable( )
{
AddColumns( ) ;
}
private void AddColumns( )
{
Columns.Add(new DataColumn("Title", typeof(string)));
Columns.Add(new DataColumn("Author", typeof(string)));
}
public ResultsTableRow NewResultsTableRow( )
{
DataRow row = base.NewRow( ) ;
ResultsTableRow row2 = new ResultsTableRow( row ) ;
return row2 ;
}
}
"The class ResultsTable can be designed, but is not the first class in
the file. Visual Studio requires that designers use the first class in
the file. Move the class code so that it is the first class in the
file and try loading the designer again."
What does that mean, "the class xxx can be designed"?
thanks,
-Steve
here is the class:
// ------------------ ResultsTable ----------------------
public class ResultsTable : System.Data.DataTable
{
public ResultsTable( )
{
AddColumns( ) ;
}
private void AddColumns( )
{
Columns.Add(new DataColumn("Title", typeof(string)));
Columns.Add(new DataColumn("Author", typeof(string)));
}
public ResultsTableRow NewResultsTableRow( )
{
DataRow row = base.NewRow( ) ;
ResultsTableRow row2 = new ResultsTableRow( row ) ;
return row2 ;
}
}