GridView Problem
-
Hi to all, In Gridview i added the text as No Data Found in EmptyDataText Property of a gridview. it is working fine when there is no data it should display that message but initially when page is displayed that time No data found is displayed which should not happen. When we select Territory Name & Click on View Button that time that gridview is display and shows all territories if not available then No Data Found . Please suggest me how to solve this gridview problem
-
Hi to all, In Gridview i added the text as No Data Found in EmptyDataText Property of a gridview. it is working fine when there is no data it should display that message but initially when page is displayed that time No data found is displayed which should not happen. When we select Territory Name & Click on View Button that time that gridview is display and shows all territories if not available then No Data Found . Please suggest me how to solve this gridview problem
Why not set the emptydatatext property at runtime then you control the information it displays.
Never underestimate the power of human stupidity RAH
-
Hi to all, In Gridview i added the text as No Data Found in EmptyDataText Property of a gridview. it is working fine when there is no data it should display that message but initially when page is displayed that time No data found is displayed which should not happen. When we select Territory Name & Click on View Button that time that gridview is display and shows all territories if not available then No Data Found . Please suggest me how to solve this gridview problem
If you set this property at design-time, then run your app, of course this is going to be displayed before you bind the grid to a dataset. Set the property only after you do a fetch and return no, or incomplete, results.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008