Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default value for a datagrid check box

Status
Not open for further replies.

graydon123

Technical User
Feb 25, 2004
10
US
I have a datagrid which contains a checkbox column. Is it possible to make all the boxes checked when the datagrid loads?
If so could you tell me how to make that happen?

Thanks!
 
I got this to work in the datagrid...

Code:
<asp:TemplateColumn>
<itemTemplate>
  <asp:CheckBox id="cbColumn" runat="server" [b]checked=true[/b] />
</itemTemplate>
</asp:TemplateColumn>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top