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

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
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
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json