asp.net.ph

BoundColumn.ReadOnly Property

System.Web.UI.WebControls Namespace   BoundColumn Class


Sets or retrieves a value that indicates whether the data in the BoundColumn can be modified.

Syntax


Inline <asp:boundcolumn readonly [ = true | false ] ... >
Script BoundColumn.ReadOnly [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true if the column cannot be modified; otherwise false. Default value is false.

Remarks

Use the ReadOnly property to prevent modification to the data bound to the column. This property can also be used to programmatically determine whether the column is read-only.

Example

The following example demonstrates how to set the ReadOnly property at design time, to prevent modification to the data in a BoundColumn.

<asp:boundcolumn readonly
   headertext = "Item"
   datafield = "title_id" />

 Show me 

See Also

BoundColumn Members   Adding Bound Columns to a DataGrid Control Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph