Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
GeneralRe: multiple choice using if else Pin
Werdna18-Feb-04 9:45
Werdna18-Feb-04 9:45 
GeneralRe: multiple choice using if else Pin
LongRange.Shooter24-Feb-04 7:00
LongRange.Shooter24-Feb-04 7:00 
GeneralMultiple entrys in zip, memory not being released ! Pin
Daniel Negron18-Feb-04 8:04
Daniel Negron18-Feb-04 8:04 
GeneralRe: Multiple entrys in zip, memory not being released ! Pin
Daniel Negron18-Feb-04 11:12
Daniel Negron18-Feb-04 11:12 
GeneralRe: Multiple entrys in zip, memory not being released ! Pin
Heath Stewart19-Feb-04 3:12
protectorHeath Stewart19-Feb-04 3:12 
GeneralSaving JPG File Pin
Mr_Mike18-Feb-04 7:49
Mr_Mike18-Feb-04 7:49 
GeneralRe: Saving JPG File Pin
Mazdak18-Feb-04 7:56
Mazdak18-Feb-04 7:56 
GeneralCheckBoxItem DataBinding problems Pin
ParrotBoy18-Feb-04 7:04
ParrotBoy18-Feb-04 7:04 
I've donwloaded the cool CheckBoxItem control discussed here:
http://www.codeproject.com/aspnet/DataGridCheckBox.asp

It works fine when I bind to a DataTable, but when I bind to one of my custom objects (A collection of type ProcessMap), which has a boolean property of Exists, I get the error: "Specified cast is not valid"

I tracked it to this line in the CheckBoxItem:
<br />
string data = ((DataRowView) container.DataItem)[dataField].ToString();<br />

Basicaly it is expecting a DataRow to bind to. I know that the usual datagrid columns can bind to a custom object, no matter what it is. Anybody have any idea how to do this?

Thanks eveyone!

Also, when I figure it out, how do I re-submit the code? Just email him a new version?
GeneralRe: CheckBoxItem DataBinding problems Pin
Heath Stewart18-Feb-04 11:18
protectorHeath Stewart18-Feb-04 11:18 
GeneralHiding a Fullscreen App (game) Pin
Kir Birger18-Feb-04 6:27
Kir Birger18-Feb-04 6:27 
GeneralRe: Hiding a Fullscreen App (game) Pin
Heath Stewart18-Feb-04 10:45
protectorHeath Stewart18-Feb-04 10:45 
GeneralAutomation Pin
yyf18-Feb-04 5:46
yyf18-Feb-04 5:46 
GeneralRe: Automation Pin
Mazdak18-Feb-04 6:03
Mazdak18-Feb-04 6:03 
GeneralRe: Automation Pin
Heath Stewart18-Feb-04 10:30
protectorHeath Stewart18-Feb-04 10:30 
GeneralRe: Automation Pin
yyf19-Feb-04 3:13
yyf19-Feb-04 3:13 
GeneralRe: Automation Pin
Heath Stewart19-Feb-04 3:20
protectorHeath Stewart19-Feb-04 3:20 
GeneralRe: Automation Pin
yyf19-Feb-04 8:13
yyf19-Feb-04 8:13 
GeneralRe: Automation Pin
Heath Stewart19-Feb-04 8:44
protectorHeath Stewart19-Feb-04 8:44 
Generalopen shared folder Pin
elite2k18-Feb-04 5:35
elite2k18-Feb-04 5:35 
GeneralRe: open shared folder Pin
CWIZO18-Feb-04 6:56
CWIZO18-Feb-04 6:56 
GeneralRe: open shared folder Pin
Heath Stewart18-Feb-04 10:20
protectorHeath Stewart18-Feb-04 10:20 
GeneralRe: open shared folder Pin
Heath Stewart18-Feb-04 10:24
protectorHeath Stewart18-Feb-04 10:24 
GeneralRe: open shared folder Pin
elite2k18-Feb-04 21:49
elite2k18-Feb-04 21:49 
GeneralRe: open shared folder Pin
Heath Stewart19-Feb-04 3:48
protectorHeath Stewart19-Feb-04 3:48 
GeneralProgressBar into StatusBar Pin
Weiye Chen18-Feb-04 4:29
Weiye Chen18-Feb-04 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.