Web servers - do that, be sure to put the page
do that, be sure to put the page that contains the control into a folder that users can t access. Enable Selection: Allows users to select a record. That record, in turn, can be used as a filter for other data controls on the same page. You ll see an example in the section titled Creating Master-Details Forms. Formatting GridView dates and times If your GridView control shows currency or date/times, you use the Edit Items option on the Common Tasks menu to format those columns. After you choose Edit Items, you ll be taken to a dialog box titled Fields. Under Selected Fields in that dialog box, click the name of the field to which you want to apply a format. The Properties box for the BoundField control then shows properties for that selected field. Scroll down through the properties until you get to the DataFormatString property and then enter your formatting code. Figure 12-21 shows an example in which I ve applied the {0:c} formatting code to the ItemPrice control. To right-align or center text within a column, scroll down a bit further in the Properties sheet and expand the ItemStyle category. Then set the HorizontalAlign property to Right or Center. Arranging and hiding columns To arrange or hide columns in a GridView, use the arrow and Delete buttons just to the right of the Selected Fields list. For example, to move a column to the left within the GridView, click its name, then click the Up button. To hide a column from GridView display, click its name and click the black X button to the right of the Selected Fields list. Figure 12-21: Fields dialog box for a GridView control. Chapter 12: Using Data in Web Pages 279
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.