Ask a Question related to ASP.NET General, Design and Development.
-
Bob #1
Make DataGrid TemplateColumn read-only in code
I have a data grid with a template column. Sometimes I
need this column to be read-only, even in edit mode.
Does anyone know how to do this. I get the other columns
by running through the DataGrid.Columns and testing for
column type. Then I can set ReadOnly for Bound columns or
make the Edit or PushButton columns invisible, but I
can't seem to do this with a template column.
Is there any way to access the control used in
EditItemTemplate for the TemplateColumn in code?
Thanks
Bob Guest
-
Create TemplateColumn on datagrid exclusively with code behind
Hi, How can I insert a TemplateColumn on a Datagrid on the fly? Basically I'm after how to create a TemplateColumn, add a button and a label... -
DataGrid/ TemplateColumn/ HeaderTemplate / Preserve Value in Postb
I'm building an editable data grid that supports any WebControl and all controls are always editable as opposed to the DataGrid model of having... -
add TemplateColumn(dropdown) to DataGrid at runtime
Hi, I am having trouble adding a dropdown to DataGrid at runtime. I create all boundColumns and the TemplateColumn for the dropdown at runtime.... -
TemplateColumn to display Checkbox in DataGrid
I am trying to display the contents of a numeric database column whose values are restricted to 0 or 1 as a checked or unchecked checkbox in my... -
DataGrid TemplateColumn and Events
I am creating a datagrid programatically and I successfuly coded a TemplateColumn (that inherits from ITemplate and implements InstantiateIn). I...



Reply With Quote

