System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Web.UI.WebControls.DataGridColumn

Use the class in a control to create a button that corresponds with each row in the control. Specify the caption that is displayed in the buttons by setting the property. If you set the property, all buttons in the object share the same caption. Alternatively, you can bind the buttons to a field in a data source. This allows you to display different captions for each button. The values in the specified field are used for the text caption. Set the property to bind the to a field in a data source.

You can format the captions that are displayed in the buttons by setting the property with a formatting string.

Clicking the buttons in the raises the event. You can programmatically control the action that is performed when the button is clicked by providing an event handler for the event.

By default, page validation is not performed when a button in the is clicked. Page validation determines whether the input controls that are associated with a validation control on the page all pass the validation rules that are specified by the validation control. To perform page validation when a button is clicked, set the property to true.

A column type for the control that contains a user-defined button.

- Constructor

  Use the constructor to create and initialize a new instance of the class.

  Initializes a new instance of the class.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.UI.WebControls.ButtonColumnType To be added: an object of type 'ButtonColumnType'

  Use the property to specify whether the buttons in the object are displayed as link or push buttons. The following table lists the possible settings.

  Button type

  Display

  A link.

  A button control.

  Clicking the buttons in the raises the event. You can programmatically control the action that is performed when the button is clicked by providing an event handler for the event.

  The value of this property is stored in view state.

  Gets or sets the type of button to display in the object.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DefaultValue(System.Web.UI.WebControls.ButtonColumnType.LinkButton)
- Property
  2.0.0.0
  System.ComponentModel.DefaultValue(false)
  System.Boolean To be added.

  By default, page validation is not performed when a button in the object is clicked. Page validation determines whether the input controls that are associated with a validation control on the page all pass the validation rules that are specified by the validation control. To perform page validation when a button in the is clicked, set the property to true.

  When the value of the property is true, you can also use the property to specify the name of the validation group for which the causes validation.

  The value of this property is stored in view state.

  Gets or sets a value indicating whether validation is performed when a button in the object is clicked.

- Property
  System.String To be added: an object of type 'string'

  Use the property to associate a command name, such as Add or Remove, with a button. You can set the property to any string that identifies the action to perform when a button in the object is clicked. Then, you can determine programmatically the command name in the event handler for the event and perform the appropriate actions.

  The value of this property is stored in view state.

  Gets or sets a string that represents the command to perform when a button in the object is clicked.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DefaultValue("")
- Property
  System.String To be added: an object of type 'string'

  Use the property to specify the field name from the data source to bind to the property of the buttons in the object.

  Binding the column to a field instead of directly setting the property allows you to display different captions for the buttons in the by using the values in the specified field.

  The value of this property is stored in view state.

  Gets or sets the field name from a data source to bind to the object.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DefaultValue("")
- Property
  System.String To be added: an object of type 'string'

  Use the property to provide a custom display format for the caption of the buttons in the object.

  The data format string consists of two parts, separated by a colon, in the form {A:Bxx}. For example, the formatting string {0:F2} formats the cell to display a fixed point number with two decimal places.

  The entire string must be enclosed in braces to indicate that it is a format string and not a literal string. Any text outside the braces is displayed as literal text.

  The value before the colon ( in the general example) specifies the parameter index in a zero-based list of parameters.

  This value can be set only to 0 because there is only one value in each cell.

  The character after the colon ( in the general example) specifies the format to display the value in. The following table lists the common formats.

  Format character

  Displays numeric values in

  C

  Currency format.

  D

  Decimal format.

  E

  Scientific (exponential) format.

  F

  Fixed format.

  G

  General format.

  N

  Number format.

  X

  Hexadecimal format.

  The format character is not case sensitive, except for X, which displays the hexadecimal characters in the case specified.

  The value after the format character ( in the general example) specifies the number of significant digits or decimal places to display.

  The value of this property is stored in view state.

  For more information on formatting strings, see Formatting Overview.

  Gets or sets the string that specifies the display format for the caption in each button.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DefaultValue("")
- Method
  System.String ``

  Use the method to convert the specified value to the format that is indicated by the property.

  The method returns the string equivalent of the value, if the property is not set.

  Converts the specified value to the format that is indicated by the property.

  The converted to the format indicated by the .

  The value to format. 1.0.5000.0 2.0.0.0
- Method
  System.Void

  Use the method to reset the object to its initial state.

  Resets the object to its initial state.

  1.0.5000.0
  2.0.0.0
- Method
  System.Void `` `` ``

  The method resets the specified cell in the object to its initial state.

  Resets a cell in the object to its initial state.

  A that represents the cell to reset. The column number where the cell is located. One of the values. 1.0.5000.0 2.0.0.0
- Property
  System.String To be added: an object of type 'string'

  Use the property to specify or determine the caption that is displayed in the buttons of the object.

  If you set the property, all buttons in the share the same caption.

  Alternatively, you can bind the to a field in a data source. This allows you to display different captions for the buttons in the column using the values in the specified field. Set the property to bind the to a field in a data source.

  The value of this property is stored in view state.

  The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see and ASP.NET Globalization and Localization.

  Gets or sets the caption that is displayed in the buttons of the object.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.Localizable(true)
  System.ComponentModel.DefaultValue("")
- Property
  2.0.0.0
  System.ComponentModel.DefaultValue("")
  System.String To be added.

  Validation groups allow you to assign validation controls on a page to a specific category. Each validation group can be validated independently of other validation groups on the page. Use the property to specify the name of the validation group for which the object causes validation when it posts back to the server.

  The property has an effect only when the value of the property is set to true. When you specify a value for the property, only the validation controls that are part of the specified group are validated when the posts back to the server. If you do not specify a value for the property and the property is set to true, all validation controls on the page that are not assigned to a validation group are validated when the posts back to the server.

  The value of this property is stored in view state.

  Gets or sets the group of validation controls for which the object causes validation when it posts back to the server.