Web host forum - To customize the appearance of the DropDownList control,
To customize the appearance of the DropDownList control, first click the control to select it. Then use its Properties sheet to refine the control s font and width. Master-Details GridView control The GridView control, named GridView1 in the Master-Details example, is bound to the DetailedUsersItemsView view created back in Chapter 11. It uses a few fields from that view to make it easy for the user to locate a specific transaction, as shown in Figure 12-36. The critical factor in getting the GridView control to show only records for the user whose name appears in the DropDownList control is in the WHERE clause. After clicking the WHERE button in Figure 12-36, I set up the condition as shown in Figure 12-37. Recall that the value of the DropDownList1 control will be one person s UserId. Therefore, the condition specified in Figure 12-37 is for the GridView to show only records where the UserId field in the view matches the UserId that s in the DropDownList1 control. Figure 12-36: Selected view and columns used for the Master- Details GridView 1 control. Figure 12-35: Data source for the DropDown List control in Master- Details. Chapter 12: Using Data in Web Pages 293
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.