Groups | Blog | Home
all groups > asp.net webcontrols > april 2006 >

asp.net webcontrols : datagrid button selectivly enabled



kpg
4/27/2006 12:31:43 PM
Hi all,

Simple (?) question.

I have a webcontrols.datagrid with a button column. Depending on the data
in the row I want the button to be enabled or disabled.

Optionally, I want the button to be visible or not visible.

I'm building the datatable record soruce from scratch, so I'm visiting
each row, I thought that would be a good place to inspect the row value
and make the determination, but I can't seem to figure out how to get
to the button for an individual row.

Is this possible?

TIA
kpg


kpg
4/27/2006 12:58:00 PM
I have something I can make work, a hyperlink column. The text
of the link comes from the datatable, so I can have it show 'Locked'
or 'Edit'. Not 100% ideal, but workable.

Template columns seemed interesting, but I don't think each row
can be different, which is what I want.
AddThis Social Bookmark Button