Click here to Skip to main content
15,888,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear,



I want to show empty gridview means in run stage we are insert and write record in the gridview and if you click on the insert button then save in database and if you click to the add button then add gridview row.


please its very urgent to me,plz help me
Posted
Comments
Mohammed Hameed 18-May-13 2:13am    
Hi Ashwini,
This kind of info is already available. If you carefully google it you will get the right solution.

1 solution

Hi Ashwini,

As per my understanding, I assume that you want to show empty gridview when there is no data to be binded, but can add data on the run. If so, then please use this.

<asp:GridView>
<EmptyDataTemplate>ITemplate</EmptyDataTemplate>
</asp:GridView>

Please go through the below MSDN link for more details

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatatemplate.aspx[^]

Let me know if this has helped you or not.!

Thank you,
Vamsi.
 
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