CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.getting_started Tags:
Item Type: Date Entered: 8/12/2005 9:37:36 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 23 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"maspr" <>
NewsGroup User
Binding to a Checkbox in a DataGrid8/12/2005 9:37:36 PM

0

I have a DataGrid which is being bound in my codebehind page from the database. The first column is a TemplateColumn with a CheckBox. Is it possible to set the checked property from my codebehind based on whether a string column is null or not?

Thanks
"FrankWhite" <>
NewsGroup User
Re: Binding to a Checkbox in a DataGrid8/13/2005 1:36:00 AM

0

I believe you want to check the OnItemDataBound event of the datagrid.  In that event, you would check the value of your checkboxes, and then set them as you need.  Just give "OnItemDataBound Checkboxes" a google.
"I would love to change the world, but they won't give me the source code." -unknown
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:













comparevalidator in an class library project

problem in displaying data (.vcs file) in outlook calendar

problem with converting types

help! question about page_load and viewstate

treeview - only want to check one box under each parent node

vb6 activex controls done in vs.net 03/05 - how can i do this in .net?

invalid address error - smtp

open scanner, scan documents and then save into sql server directly

my user control awakening

accessing veriable in codebind

binding xml to dropdownlist

how do you dynamically get the file name of a page from its code behind file?

how do i release a file from a process?

new appliction development

redirecting to external website from asp.net website

'system.diagnostics.log' is inaccessible due to its protection level

iis optimized settings?

exporting datagrid to pdf file

stack overflow happens when using registerrequirecontrolstate

try...catch...finally: error handling

storing a variable between events...

colortranslator

enter key causing form to submit?

validation problem with mozilla firefox 0.8

spanning elements across web page

textbox

questions about system.net.mail.smtpclient smtpexceptions

problems with dynamic table.. postback problem.

web form alignment

how to retrieve last day of last month of certain year

menu/submenu system from dataset

wrap properties in [text area] ???

problem with the current page from which a new page is being opened

retrieving listitem in listbox at server side

inheritance, namespace etc.

how to access secured websites in iframe ?

multiple forms on a page: recommendation for best practice?

menu

getting contents of panel in codebehind?

autopostback problem

calculating playing length of a media file

debugging issues - "the breakpoint will not currently be hit. no symbols have been loaded for this document."

compiler error message: bc30518: overload resolution failed because no accessible 'write' can be called with these arguments, what does that means?

how to load image in my image control , the image is stored as a binary data in sqlsqrver.

passing values to forms

is there a c# function to scan a string and add the correct html escape sequences to it?

validating server control using javascript ?????

going back to previous page

manipulating "page directive" ???

server to store images online

   
  Privacy | Contact Us
All Times Are GMT