asp.net.ph

DataGridPagerStyle.MergeWith Method

System.Web.UI.WebControls Namespace   DataGridPagerStyle Class


Merges the style of a specified Style object with this instance of the DataGridPagerStyle class.

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

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

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

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

Parameters

s
The style to merge with.

Remarks

Use the MergeWith method to combine the style properties of a specified Style object with this instance of the DataGridPagerStyle class. If a property from this instance is already set to a value, the property is unchanged. If a property is not set, this method sets that property with the value from the corresponding property of the Style object.

Example

The following example demonstrates how to use the MergeWith method to combine the properties of a Style object with 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;

   // Merge Style object with DataGridPagerStyle object.
   myGrid.PagerStyle.MergeWidth ( myStyle ); 
  
   bindGrid ( );
}
  C# VB

See Also

DataGridPagerStyle Members   CopyFrom   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