asp.net - Make GridView footer visible when there is no data bound -
How to show footers when there is no data in the gridview to insert data from the footer.
The easiest way to do this is to attach an array to the length of one you put anything in it You want to recognize that this is a dummy line to check on your Gridviews RoadAdbound method check to see if the data item is the dummy line (make sure that there is a detorve before checking the bread type data). If this is a dummy line, then set the rows to false visibility Fuster and header are now showing no data.
Ensure that you set ShowFooter property to right on your gridview.
For example.
Secure Zero Page_load (Object Sender, EventAgds E) {if (IsPostback) {myGrid.DataSource = New Object [] {null}; MyGrid.DataBind (); }} Protected Zero myGrid_RowDataBound (Object Sender, GridViewRowEventArgs E) {If (E. Rau.RowType == DataControlRowType.DataRow) {if (E.E. DataItem == blank) {E.R.Vebyl = False; }}}
Comments
Post a Comment