none
class library project and dataset RRS feed

  • Question

  •  

    Hi,

    i'm trying to add a dataset to a class library project

    when i build the project i get an error.

    Is it possible to add a datase to an class library project, and how it done.

    thanks...

    Monday, February 4, 2008 1:00 PM

Answers

  • i have made it work

    stuido generated this line code in the desgner

    this.testnaBazaZaGanttDataSet = new ProbaZaClarion.TestnaBazaZaGanttDataSet();

    i just deleted ProbaZaClarion

    this.testnaBazaZaGanttDataSet = new TestnaBazaZaGanttDataSet();

    and it works

    Monday, February 4, 2008 3:07 PM

All replies

  • Sure, you could add a DataSet to a class library project (right click on your project - Add - New Item - DataSet). What kind of errors do you get?
    Monday, February 4, 2008 2:06 PM
  • When buil it i get the following error

    The type 'TestnaBazaZaGanttDataSet' does not exist in the type 'ProbaZaClarion.ProbaZaClarion'

    and th error is in the control designer

    ProbaZaClarion is the project name.........

     

    Monday, February 4, 2008 2:18 PM
  • i have a gridview and i add a binding source. studio creates the dataset, bindingsouce and the tableadapter.

     i really don't get it.....

     

    Monday, February 4, 2008 2:53 PM
  • i have made it work

    stuido generated this line code in the desgner

    this.testnaBazaZaGanttDataSet = new ProbaZaClarion.TestnaBazaZaGanttDataSet();

    i just deleted ProbaZaClarion

    this.testnaBazaZaGanttDataSet = new TestnaBazaZaGanttDataSet();

    and it works

    Monday, February 4, 2008 3:07 PM