How can I associate 2 table data in a single DataGridView in the WiseJ empty window?

Answered
0
0

There are classes that I have already set,

e.g:

***select all data in table***

List<Question> liste2 = new List<Question>();
liste2 = new QuestionAction().SearchAll();

****select one cell in table*****

List<Question> liste2 = new List<Question>();
liste2 = new QuestionAction().SearchAll(new Question { AnketID=1 });

****insert****

Question Q = new Question();
Q.Soru = “dsadsad”;
new QuestionAction().Insert(Q);

etc..

I show the survey grid with the data grid. When I press a row in the ‘Survey Name’ column, I want the question to be displayed in the DataGridView by associating it with the Question ID in the table

 

List<Survey> anketler = new List<Survey>();
anketler = new SurveyAction().SearchAll();
dataGridView1.DataSource = anketler;

  • You must to post comments
Great Answer
0
0

I’m not sure I understand  the question. If you have 2 or more object lists and you want to generate a single data source you can use Linq or a DataSet. Wisej can use any valid .NET data source.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.