Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Have a grid view That Haw 10 Cols. For Example
XML
<Columns>
     <asp:TemplateField HeaderText="Rev">
         <ItemTemplate>
             <asp:Label ID="Label9" runat="server" ForeColor="#000066"
                     Text='<%# Eval("Rev") %>' Width="10">
             </asp:Label>
         </ItemTemplate>
     </asp:TemplateField>
 </Columns>

 <Columns>
     <asp:TemplateField HeaderText=" Mian Details">
         <ItemTemplate>

         </ItemTemplate>
     </asp:TemplateField>
 </Columns>

for Columns main details i want run query that table is different with main table,please Help Me?
Posted
Comments
Dinesh.V.Kumar 16-Apr-14 2:49am    
Your question is not clear enough..Kindly use "Improve Question" widget and give more information on what is that you want and what you have done so far and where you are stuck..
syed shanu 16-Apr-14 2:49am    
I think you are asking about Join table .might be you want different table collumn should be display in one grid.If this so then use joining more then one table and select the columns and display it in your gridview

1 solution

Not sure which one but check both to solve your issue

JOIN Tables
Add Data to GridView from Multiple Tables ASP.NET 4.0 in C#[^]

Parent-Child Tables
Multilevel Nested Master/Detail Data Display Using GridView[^]
 
Share this answer
 

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