TechTalk Genome v4.2

QueryCommandField.AddButtonToCell Method 

Adds a button control with the specified parameters to the cell.

protected virtual void AddButtonToCell(
   QueryFieldCell cell,
   Control container,
   string commandName,
   string buttonText,
   bool causesValidation,
   string validationGroup,
   string imageUrl
);

Parameters

cell
A QueryFieldCell that contains the controls of the QueryCommandField.
container
A container Control to add the button control to.
commandName
The command name of the button.
buttonText
The text of the button.
causesValidation
A value indicating whether clicking the button causes page validation to occur.
validationGroup
The name of the group of controls for which the button control causes validation when it posts back to the server.
imageUrl
The URL to an image to display for the button.

Requirements

Namespace: TechTalk.Genome.Extensions.Web.UI.Controls

Assembly: TechTalk.Genome.Extensions.Web (in TechTalk.Genome.Extensions.Web.dll)

Version: 4.2.11.59

Editions: Professional, Evaluation, Express

See Also

QueryCommandField Class | TechTalk.Genome.Extensions.Web.UI.Controls Namespace