Click here to Skip to main content
15,909,440 members
Home / Discussions / C#
   

C#

 
GeneralRe: ServiceController start exception can't handle. Pin
CodingLover21-Sep-08 22:57
CodingLover21-Sep-08 22:57 
GeneralRe: ServiceController start exception can't handle. Pin
N a v a n e e t h21-Sep-08 23:03
N a v a n e e t h21-Sep-08 23:03 
QuestionMemory stream Pin
sirisha guttikonda21-Sep-08 21:05
sirisha guttikonda21-Sep-08 21:05 
AnswerRe: Memory stream Pin
Guffa21-Sep-08 21:20
Guffa21-Sep-08 21:20 
GeneralRe: Memory stream Pin
sirisha guttikonda21-Sep-08 21:27
sirisha guttikonda21-Sep-08 21:27 
AnswerRe: Memory stream Pin
N a v a n e e t h21-Sep-08 22:15
N a v a n e e t h21-Sep-08 22:15 
GeneralRe: Memory stream Pin
sirisha guttikonda22-Sep-08 1:09
sirisha guttikonda22-Sep-08 1:09 
QuestionHandle invalid values in DataGridView Pin
JuiceOntour21-Sep-08 20:39
JuiceOntour21-Sep-08 20:39 
Hi!

I have the following situation: a DataGridView is bound to a database table (say TChild). Within this table there is a foreign key to another table (say TParent). I use a combobox column to display the possible values of the foreign key within the DGV.

The TParent table has a column called "IsOpen" telling us whether a row is open or closed. The user should not be able to select a closed TParent out of the combobox.

Where it comes to a problem is that the user can "open" or "close" the TParent. As a consequence:
- a given row is not part of the combobox anymore.
- the same row still exists in the database, as a value saved by the users.
When I try to populate the column with those saved values, an exception is thrown, stating that the value is invalid.

What solution would you recommend?

Ideally, I would have liked a solution where the inactive value is not present in the drop down list but still gets displayed in the DGV.

Thanks
AnswerRe: Handle invalid values in DataGridView Pin
nelsonpaixao22-Sep-08 14:16
nelsonpaixao22-Sep-08 14:16 
GeneralRe: Handle invalid values in DataGridView Pin
JuiceOntour22-Sep-08 20:04
JuiceOntour22-Sep-08 20:04 
GeneralRe: Handle invalid values in DataGridView Pin
nelsonpaixao23-Sep-08 14:39
nelsonpaixao23-Sep-08 14:39 
QuestionRead Cookie From Win App Pin
Meysam Mahfouzi21-Sep-08 20:28
Meysam Mahfouzi21-Sep-08 20:28 
AnswerRe: Read Cookie From Win App [modified] Pin
N a v a n e e t h21-Sep-08 22:18
N a v a n e e t h21-Sep-08 22:18 
GeneralRe: Read Cookie From Win App Pin
Meysam Mahfouzi22-Sep-08 0:02
Meysam Mahfouzi22-Sep-08 0:02 
QuestionSubmitting a form in the webBrowser control to the default Browser Pin
sarabjs21-Sep-08 20:12
sarabjs21-Sep-08 20:12 
Questionhow to set runtime marquee Pin
shihabul haq21-Sep-08 19:57
shihabul haq21-Sep-08 19:57 
AnswerRe: how to set runtime marquee Pin
Harvey Saayman21-Sep-08 20:19
Harvey Saayman21-Sep-08 20:19 
QuestionAbout signing Pin
Ashutosh_Bodake21-Sep-08 19:48
Ashutosh_Bodake21-Sep-08 19:48 
AnswerRe: About signing Pin
Ravi Bhavnani21-Sep-08 21:10
professionalRavi Bhavnani21-Sep-08 21:10 
AnswerRe: About signing Pin
Ajay.k_Singh21-Sep-08 23:06
Ajay.k_Singh21-Sep-08 23:06 
GeneralRe: About signing Pin
Fal_0022-Sep-08 20:06
Fal_0022-Sep-08 20:06 
GeneralRe: About signing Pin
Ajay.k_Singh22-Sep-08 20:20
Ajay.k_Singh22-Sep-08 20:20 
GeneralRe: About signing Pin
Pete O'Hanlon22-Sep-08 1:21
mvePete O'Hanlon22-Sep-08 1:21 
GeneralRe: About signing Pin
Mark Salsbery22-Sep-08 6:52
Mark Salsbery22-Sep-08 6:52 
GeneralRe: About signing Pin
Fal_0022-Sep-08 20:09
Fal_0022-Sep-08 20:09 

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.