Click here to Skip to main content
15,909,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have give this coding for get datagridview in my webpage, but this is not display
What is the problem please anybody help.

I given within multiview table

XML
<asp:View ID="View4" runat="server">
     <asp:GridView ID="GridView1" runat="server" Height="82px" style="z-index: 103; left: 638px; position: absolute; top: 382px" CaptionAlign="Left">
         <Columns>
             <asp:BoundField HeaderText="Role" />
             <asp:BoundField HeaderText="Name" />
             <asp:BoundField HeaderText="Phone" />
             <asp:BoundField HeaderText="Fax" />
         </Columns>
    </asp:GridView></asp:View>
Posted
Comments
Shobana16 27-Dec-11 3:34am    
Did you assign a datasoure for it?
devausha 27-Dec-11 3:40am    
No i didn't i want to datagridview just give the input to form
Om Prakash Pant 27-Dec-11 4:07am    
input to form? please elaborte
Vikas_Shukla_89 27-Dec-11 4:10am    
Gridview is visible on the page at runtime becouse data is not there.
either add datasource or add one record just for temporary purpose.
hope this help...

1 solution

Hi,

DataGridView will not display any row not even header if DataSource is not applied.

thanks
-Amit.
 
Share this answer
 
Comments
Shobana16 27-Dec-11 4:13am    
Is this sure? i dont know clear idea about gridview binding without data source..
AmitGajjar 27-Dec-11 4:30am    
can you elaborate meaning of "i want to datagridview just give the input to form"
dimpledevani 28-Dec-11 7:04am    
as far as i know, Gridview is visible only if a datasource is given to it and the datasource should have some data in it
AmitGajjar 28-Dec-11 7:05am    
correct!!

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