Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Programming Challenge - By Reelix Pin
#realJSOP20-May-08 23:17
professional#realJSOP20-May-08 23:17 
GeneralRe: C# Programming Challenge - By Reelix Pin
Reelix20-May-08 20:00
Reelix20-May-08 20:00 
QuestionRadiobuttons binding Pin
topcatalpha20-May-08 4:54
topcatalpha20-May-08 4:54 
QuestionBinaryFormatter Serializer Out-of-Memory Exception Pin
Ian Uy20-May-08 4:54
Ian Uy20-May-08 4:54 
AnswerRe: BinaryFormatter Serializer Out-of-Memory Exception Pin
Judah Gabriel Himango20-May-08 5:03
sponsorJudah Gabriel Himango20-May-08 5:03 
GeneralRe: BinaryFormatter Serializer Out-of-Memory Exception Pin
Ian Uy20-May-08 5:20
Ian Uy20-May-08 5:20 
GeneralRe: BinaryFormatter Serializer Out-of-Memory Exception Pin
Judah Gabriel Himango20-May-08 5:45
sponsorJudah Gabriel Himango20-May-08 5:45 
QuestionHow to refresh Combo Box in data grid view? [modified] Pin
cocoonwls20-May-08 4:47
cocoonwls20-May-08 4:47 
Hi all,

I have a dataset DsA and 1 datagridview DgvA. I have bind a dataset into DgvA and also add a combobox into DgvA accroding data in DsA.
I would like to know how can i refresh the comboBox in DgvA when DsA was edit?Below is the senario,

1)DsA have 5 rows and values are {a,b,c,d,e}
2)Add comboBox (which according data in DsA) to a datagridview
3)Add 5 rows in datagridview and a comboBox's value is select for each row ,as:
row 1: a
row 2: b
row 3: c
row 4: d
row 5: e
4)Edit row's value in DsA, now will be {W,X,Y,Z,Q}
5)Refresh value in datagridview will get the result as:
row 1: W
row 2: X
row 3: Y
row 4: Z
row 5: Q

Any tips/idea/related source are welcome.

Note: i will not only edit row in DsA, but also will add/delete row in DsA
Here is the exception which i get when DsA changed:

The following exception occured in the datagridview:
system.ArgumentException: DataGridViewComboBoxCell value is not valid
To replace this default dialog please handle the DataError event.


thanks in advance.

regards
cocoonwls

modified on Tuesday, May 20, 2008 11:09 AM

AnswerRe: How to refresh Combo Box in data grid view? Pin
cocoonwls27-May-08 16:19
cocoonwls27-May-08 16:19 
QuestionHow to convert text files to PDF files using C#.Net Pin
Sophia Rekhi20-May-08 4:32
Sophia Rekhi20-May-08 4:32 
AnswerRe: How to convert text files to PDF files using C#.Net Pin
Judah Gabriel Himango20-May-08 4:59
sponsorJudah Gabriel Himango20-May-08 4:59 
AnswerRe: How to convert text files to PDF files using C#.Net Pin
som.nitk20-May-08 5:07
som.nitk20-May-08 5:07 
QuestionDeploying custom web parts using STSADM.exe Pin
manikandanid20-May-08 3:45
manikandanid20-May-08 3:45 
AnswerCross Post Pin
led mike20-May-08 4:30
led mike20-May-08 4:30 
GeneralRe: Cross Post Pin
manikandanid20-May-08 18:06
manikandanid20-May-08 18:06 
Question.NET 3.5 redistributable package Pin
ptr2void20-May-08 3:33
ptr2void20-May-08 3:33 
AnswerRe: .NET 3.5 redistributable package Pin
Kel_20-May-08 4:15
Kel_20-May-08 4:15 
AnswerRe: .NET 3.5 redistributable package Pin
Ed.Poore20-May-08 4:23
Ed.Poore20-May-08 4:23 
QuestionWhen is a customAttribute constructor of ... : System.Attribute called/activated Pin
petermeter20-May-08 2:46
petermeter20-May-08 2:46 
AnswerRe: When is a customAttribute constructor of ... : System.Attribute called/activated Pin
led mike20-May-08 4:26
led mike20-May-08 4:26 
GeneralRe: When is a customAttribute constructor of ... : System.Attribute called/activated Pin
petermeter20-May-08 8:52
petermeter20-May-08 8:52 
AnswerRe: When is a customAttribute constructor of ... : System.Attribute called/activated Pin
PIEBALDconsult20-May-08 15:07
mvePIEBALDconsult20-May-08 15:07 
Questiondata structure design for data aggregation Pin
George_George20-May-08 2:44
George_George20-May-08 2:44 
AnswerRe: data structure design for data aggregation Pin
Christian Wikander20-May-08 3:09
Christian Wikander20-May-08 3:09 
GeneralRe: data structure design for data aggregation Pin
George_George20-May-08 3:28
George_George20-May-08 3:28 

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.