Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
QuestionLinq To Sql - Update Hierarchical Data Pin
Kevin Marois29-Nov-11 7:01
professionalKevin Marois29-Nov-11 7:01 
AnswerRe: Linq To Sql - Update Hierarchical Data Pin
Not Active29-Nov-11 8:31
mentorNot Active29-Nov-11 8:31 
QuestionChecking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 20:28
AmbiguousName28-Nov-11 20:28 
AnswerRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 20:48
professionalWayne Gaylard28-Nov-11 20:48 
GeneralRe: Checking or Unchecking Based on Some Value Pin
DaveyM6928-Nov-11 21:35
professionalDaveyM6928-Nov-11 21:35 
GeneralRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 21:41
professionalWayne Gaylard28-Nov-11 21:41 
GeneralRe: Checking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 22:48
AmbiguousName28-Nov-11 22:48 
GeneralRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 22:56
professionalWayne Gaylard28-Nov-11 22:56 
In that case a direct cast to int will throw an exception. If you require all true values to equal "1" then you could just do this :-

C#
checkBox.Checked = (string)reader["var"] == "1";

When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

GeneralRe: Checking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 23:08
AmbiguousName28-Nov-11 23:08 
GeneralRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 23:13
professionalWayne Gaylard28-Nov-11 23:13 
GeneralRe: Checking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 23:22
AmbiguousName28-Nov-11 23:22 
Questioncall C++ dll from C# without name mangling Pin
Paulraj G28-Nov-11 17:57
Paulraj G28-Nov-11 17:57 
AnswerRe: call C++ dll from C# without name mangling Pin
Wayne Gaylard28-Nov-11 18:03
professionalWayne Gaylard28-Nov-11 18:03 
GeneralRe: call C++ dll from C# without name mangling Pin
Paulraj G28-Nov-11 18:16
Paulraj G28-Nov-11 18:16 
GeneralRe: call C++ dll from C# without name mangling Pin
Richard MacCutchan28-Nov-11 22:58
mveRichard MacCutchan28-Nov-11 22:58 
QuestionRegEx.Split Pin
devvvy28-Nov-11 17:01
devvvy28-Nov-11 17:01 
AnswerRe: RegEx.Split Pin
Peter_in_278028-Nov-11 17:18
professionalPeter_in_278028-Nov-11 17:18 
AnswerRe: RegEx.Split Pin
devvvy28-Nov-11 17:29
devvvy28-Nov-11 17:29 
AnswerRe: RegEx.Split Pin
PIEBALDconsult28-Nov-11 17:48
mvePIEBALDconsult28-Nov-11 17:48 
AnswerRe: RegEx.Split Pin
BillWoodruff29-Nov-11 14:22
professionalBillWoodruff29-Nov-11 14:22 
GeneralRe: RegEx.Split Pin
devvvy29-Nov-11 22:56
devvvy29-Nov-11 22:56 
GeneralRe: RegEx.Split Pin
BillWoodruff30-Nov-11 7:44
professionalBillWoodruff30-Nov-11 7:44 
QuestionDatagridview autogenerate columns false dont work Pin
ChauhanAjay28-Nov-11 16:36
ChauhanAjay28-Nov-11 16:36 
QuestionAutomatic deployment Pin
Super Lloyd28-Nov-11 14:52
Super Lloyd28-Nov-11 14:52 
AnswerRe: Automatic deployment Pin
Dave Kreskowiak28-Nov-11 15:45
mveDave Kreskowiak28-Nov-11 15:45 

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.