Collapse the table of content
Expand the table of content
Expand Minimize

DataGridTableStyle.ResetAlternatingBackColor Method

Resets the AlternatingBackColor property to its default value.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void ResetAlternatingBackColor()

You typically use this method if you are either creating a designer for the DataGridTableStyle or creating your own control incorporating the DataGridTableStyle. You can use the ShouldSerializeAlternatingBackColor method to determine whether the property value has changed from its default.

The following code example demonstrates the use of this member.

private void myButton1_Click(object sender,EventArgs e)
   //Set the 'AlternatingBackColor'.
private void myButton2_Click(object sender,EventArgs e)
   // Reset the 'AlternatingBackColor'.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft