Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error Evaluating Regular Expression Pin
abhinish6-Aug-06 20:45
abhinish6-Aug-06 20:45 
QuestionSending emails in C# Pin
minniemooo3-Aug-06 21:03
minniemooo3-Aug-06 21:03 
AnswerRe: Sending emails in C# Pin
Stefan Troschuetz3-Aug-06 21:10
Stefan Troschuetz3-Aug-06 21:10 
Questioncombobox datasource problem Pin
V.3-Aug-06 20:52
professionalV.3-Aug-06 20:52 
AnswerRe: combobox datasource problem Pin
Christian Graus3-Aug-06 20:58
protectorChristian Graus3-Aug-06 20:58 
GeneralRe: combobox datasource problem Pin
V.3-Aug-06 21:28
professionalV.3-Aug-06 21:28 
GeneralRe: combobox datasource problem Pin
psamy3-Aug-06 21:44
psamy3-Aug-06 21:44 
GeneralRe: combobox datasource problem Pin
V.3-Aug-06 22:01
professionalV.3-Aug-06 22:01 
this:
DataSet _ds=dbc.GetDataSet().Clone();<br />
combo_state.DataSource=_ds.Tables[0].DefaultView;<br />


equals:

combo_state.DataSource = dbc.GetDataSet().Clone().Tables[0].DefaultView;

I think, no?
But I found the problem. Clone() only copies the structure. no data. You have to use the Copy() method to copy the data and the structure.

like this:
<br />
combo_state.DataSource = ((DataView)combo_nationality.DataSource).Table.Copy().DefaultView;<br />
combo_state.DisplayMember = "lbl";<br />
combo_state.ValueMember = "country_id";<br />


tnx for the help.



I've found a living worth working for, but I haven't found work worth living for.


<marquee>Beer | [beer]
    Jig | [Dance]

GeneralRe: combobox datasource problem Pin
psamy3-Aug-06 22:26
psamy3-Aug-06 22:26 
GeneralRe: combobox datasource problem Pin
V.3-Aug-06 21:43
professionalV.3-Aug-06 21:43 
QuestionXmlReader problem when XML has non foreign special characters [modified] Pin
Andreas X3-Aug-06 20:51
professionalAndreas X3-Aug-06 20:51 
AnswerRe: XmlReader problem when XML has non foreign special characters Pin
Guffa3-Aug-06 22:40
Guffa3-Aug-06 22:40 
GeneralRe: XmlReader problem when XML has non foreign special characters [modified] Pin
lmoelleb3-Aug-06 22:56
lmoelleb3-Aug-06 22:56 
AnswerRe: XmlReader problem when XML has non foreign special characters [modified] Pin
eggie55-Aug-06 21:02
eggie55-Aug-06 21:02 
QuestionTo Add a User to Windows programtically Pin
Deepa N3-Aug-06 20:48
Deepa N3-Aug-06 20:48 
AnswerRe: To Add a User to Windows programtically Pin
Shajeel3-Aug-06 21:10
Shajeel3-Aug-06 21:10 
QuestionoledBconnection error Pin
skyeddie3-Aug-06 19:27
skyeddie3-Aug-06 19:27 
AnswerRe: oledBconnection error Pin
Expert Coming3-Aug-06 19:47
Expert Coming3-Aug-06 19:47 
GeneralRe: oledBconnection error Pin
skyeddie3-Aug-06 20:01
skyeddie3-Aug-06 20:01 
GeneralRe: oledBconnection error Pin
Expert Coming3-Aug-06 20:30
Expert Coming3-Aug-06 20:30 
Questionhi Pin
santhoshalakshmi3-Aug-06 18:42
santhoshalakshmi3-Aug-06 18:42 
AnswerRe: hi Pin
Expert Coming3-Aug-06 19:07
Expert Coming3-Aug-06 19:07 
QuestionMethod Returns Twice Pin
Expert Coming3-Aug-06 18:18
Expert Coming3-Aug-06 18:18 
AnswerRe: Method Returns Twice Pin
Guffa3-Aug-06 19:02
Guffa3-Aug-06 19:02 
GeneralRe: Method Returns Twice Pin
Expert Coming3-Aug-06 19:06
Expert Coming3-Aug-06 19:06 

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.