L
Lars Pedersen
Hi!
In a datagrid, where I'm building all my columns in codebehind, I have a
ButtonColumn.
When user clicks the button, I want to call a function.
I have tried the CommandName property, but it wont fire.
Example:
ButtonColumn bcol = new ButtonColumn();
bcol.ButtonType = ButtonColumnType.LinkButton;
bcol.HeaderText = "Kurv";
bcol.DataTextField = "ID";
dgProductList.Columns.Add(bcol);
private void DoTask()
{
...Some code
}
Question:
How do I call DoTask(), when clicking the ButtonColums button.
A syntax example would be very helpful to me.
Thanks..
In a datagrid, where I'm building all my columns in codebehind, I have a
ButtonColumn.
When user clicks the button, I want to call a function.
I have tried the CommandName property, but it wont fire.
Example:
ButtonColumn bcol = new ButtonColumn();
bcol.ButtonType = ButtonColumnType.LinkButton;
bcol.HeaderText = "Kurv";
bcol.DataTextField = "ID";
dgProductList.Columns.Add(bcol);
private void DoTask()
{
...Some code
}
Question:
How do I call DoTask(), when clicking the ButtonColums button.
A syntax example would be very helpful to me.
Thanks..