What type of column to use?
Posted on 2005-04-11
I have a datagrid with data columns "Date" and "status" for a particular document. I'd like to include a third button column called "reserve". I want this column to show up only if the status for the document is set to "Available". When the user clicks the button in a row, I don't want the datagrid to become editable. Instead all it should do is update the database and set the status for that particular row to "Checked out" and refresh the datagrid.
My problem is that I am not sure what kind of column i should use for this. A template column or a button column? Also how can I do the above using this column?