|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GridView ControlI am very new to ASP.NET 2.0. I tried to use GridView control and its
built-in SqlDataSource object. Where there is data for a particular table which i bind my GridView to, the GridView can show successfully. However, when there is no record in my table which i bind my GridView to, the whole GridView will not be displayed. May i know how to make my GridView just displays the header text when there is no record in my table?Thanks. There is a <EmptyDataTemplate> you can specify for when there are now rows
to be shown. I usually put something like "No Rows Returned" or somesuch. -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > I am very new to ASP.NET 2.0. I tried to use GridView control and its > built-in SqlDataSource object. Where there is data for a particular > table which i bind my GridView to, the GridView can show successfully. > However, when there is no record in my table which i bind my GridView > to, the whole GridView will not be displayed. May i know how to make > my GridView just displays the header text when there is no record in > my table?Thanks. >
Why don't child control events trigger OnBubbleEvent?
Datalist - Image loads on localhost but not on server Valid values for properties About CreateChildControls() Looking for an Autocomplete DropDownList looking for tab control / tabstrip in VS 2005 beta2 Multiple Label tags with same ID Validation on dynamic fields Object reference not set to an instance of an object - newpost Datagrid ... is this the control from hell? |
|||||||||||||||||||||||