Is it possible to display multiple records in a 1 datagrid??
Like for example

I have a 2 tables

True_False
SeqNo
SubjectId
BookId
Question
Level
True_False_Details
SeqNo
Answer

I have a textbox name SubjectId, when i input a valid SubjectId it should display the record Question Level from the True_False table and the record Answer from the table True_False_Details in the datagrid..

Can somebody help me??

I take it you are referring to two database tables, True_False and True_False_Details? If they share a common column (like seqNo) just structure an SQL statement that merges the results from the 2 tables.

SELECT tf.question, tf.level, tfd.answer FROM True_False as tf JOIN True_False_Details as tfd ON tf.seqNo = tfd.seqNo WHERE tf.subjectid = 'subjectID' ORDER BY seqNo

Take the output of the SQL statement and use that as the data source for your datagrid.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.