G
Guest
Hello all,
My basic problem is that my LinkButton does not support a data bound
CommandArgument property under certain cases. The intent is to filter my
datagrid based on a specific row's value, so one query might return players
from multiple schools; clicking on a player row's school linkbutton will
filter the previous query to that school.
The linkbuttons bind properly (including the commandArgument) when the
templatecolumn is early in the columns collection. Later in the collection,
given a certain state, I remove two of the columns from the collection,
because data is not available to populate them. Unfortunately, if I put the
tempate column that contains the Linkbutton with the bound CommandArgument
property after the deleted columns, the command argument always shows up as
an empty string, "".
I'm stumped. I am getting ready to just databind the DataTable and query
the table based on the row index - but is resource intensive, and clunky,
especially on higher data pages.
Any suggestions?
Ben Joldersma
Sr. Software Developer,
Citadel Media Inc.
My basic problem is that my LinkButton does not support a data bound
CommandArgument property under certain cases. The intent is to filter my
datagrid based on a specific row's value, so one query might return players
from multiple schools; clicking on a player row's school linkbutton will
filter the previous query to that school.
The linkbuttons bind properly (including the commandArgument) when the
templatecolumn is early in the columns collection. Later in the collection,
given a certain state, I remove two of the columns from the collection,
because data is not available to populate them. Unfortunately, if I put the
tempate column that contains the Linkbutton with the bound CommandArgument
property after the deleted columns, the command argument always shows up as
an empty string, "".
I'm stumped. I am getting ready to just databind the DataTable and query
the table based on the row index - but is resource intensive, and clunky,
especially on higher data pages.
Any suggestions?
Ben Joldersma
Sr. Software Developer,
Citadel Media Inc.