Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > checkbox in datagrid

Reply
Thread Tools

checkbox in datagrid

 
 
pleaseexplaintome@yahoo.com
Guest
Posts: n/a
 
      08-11-2006
hello, I am using C#. How do I bind a checkbox in a asp.net webform
datagrid? the oracle database has a number field where I want any non
zero value to be true, 0 is false.

I have created a template column. when I try:
<asp:CheckBox ID="chk" Runat="server"
Checked='<%#DataBinder.Eval(Container.DataItem, "duplicate")%>'/> it
errors out with "specified cast is not valid"

thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid and embeded Checkbox..How to find if checkbox clicked =?Utf-8?B?RG90TmV0RGV2?= ASP .Net 1 10-06-2006 04:11 PM
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked. Joey Pang ASP .Net Datagrid Control 4 06-13-2005 02:29 AM
Text on Checkbox below the checkbox tshad ASP .Net 0 04-14-2005 11:26 PM
Added CheckBox to a DataGrid Doesn't work with DataGrid.Enabled=False Amar ASP .Net 0 04-06-2004 10:14 AM
Added CheckBox to a DataGrid Doesn't work with DataGrid.Enabled=False Amar ASP .Net Building Controls 0 04-06-2004 10:14 AM



Advertisments