Click here to Skip to main content
15,917,731 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to bind fields from two table in gridview.

e.g Table A
fields :A B C D

Table B
fields : E F G H

so i want to bind grid with first two fileds of A and first Fileds From B.

>> E is a checkbox and i want to bind it with E field and display all records from A.


GridView1.DataSource = c.getdata("select id,title,bit_indicator from document where category='" + drop_cat.SelectedItem.Text + "' and subctgry='" + drop_sub_cat.SelectedItem.Text + "'");

this is code which display all records from the document table but i want first field which is checkbox and it value come from second table for checked or unchecked the checkbox and all records display from the first table.
Updated 26-Apr-12 1:26am
[no name] 26-Apr-12 7:22am    
What have you tried? What errors are you getting? Where is the code snippet that demonstrates your problem?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900