asp.net.ph

DataGridPagerStyle.CopyFrom Method

System.Web.UI.WebControls Namespace   DataGridPagerStyle Class


Copies the style of a specified Style object into this instance of the DataGridPagerStyle class.

[ VB ]
Overrides Public Sub CopyFrom ( _
   ByVal s As Style _
)

[ C# ]
public override void CopyFrom (
   Style s
);

[ C++ ]
public: void CopyFrom (
   Style* s
);

[ JScript ]
public override function CopyFrom (
   s : Style
);

Parameters

s
The style to copy from.

Remarks

Use the CopyFrom method to copy the style properties of a specified Style object into this instance of the DataGridPagerStyle class.

Example

The following example demonstrates how to use the CopyFrom method to copy the properties of a Style object to a DataGridPagerStyle object.

void Page_Load ( Object src, EventArgs e ) {
   // create a Style object.
   Style myStyle = new Style ( );

   // Set style properties.
   myStyle.BackColor = System.Drawing.Color.Lavender;
   myStyle.ForeColor = System.Drawing.Color.Blue;

   // copy Style object to DataGridPagerStyle object.
   myGrid.PagerStyle.CopyFrom ( myStyle ); 
  
   bindGrid ( );
}
  C# VB

See Also

DataGridPagerStyle Members   MergeWith   Reset Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph