asp.net.ph

FormView.EditRowStyle Property

System.Web.UI.WebControls Namespace   FormView Class


.NET Framework version 2.0

Sets or retrieves the style properties for the row currently being edited in a FormView control.

Syntax


Script FormView.EditRowStyle.Property [ = enumValue ]

Property Value

A TableItemStyle object that defines the style properties for the row currently in edit mode in a FormView.

Remarks

Use this property to provide a custom style for the row currently in edit mode in a FormView control. Common style attributes that can be set include forecolor, backcolor, font, and content alignment within the cell. Providing different row styles enhances the appearance of the FormView control.

The EditRowStyle subproperties can be set declaratively using either of the following methods:

The subproperties can also be set programmatically in the form EditRowStyle.Property.

For a list of style properties that can be set, see the TableItemStyle class.

Example

The below snippet shows how to set the EditRowStyle for a FormView control at design time.

<asp:formview id = "msgView" runat = "server" ... >

   <headerstyle backcolor = "steelblue"
      forecolor = "beige" />

   <rowstyle verticalalign = "top" />

   <editrowstyle backcolor = "lightgreen" />

   <itemtemplate>
      ...
   </itemtemplate>

</asp:formview>
See Also

EmptyDataRowStyle   InsertRowStyle   RowStyle   Allowing Users to Edit Rows in a FormView Control Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note