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

C#

 
GeneralRe: Retreiving Application Icon Pin
ThisBytes51-Jun-04 9:33
ThisBytes51-Jun-04 9:33 
GeneralRe: Retreiving Application Icon Pin
Heath Stewart1-Jun-04 9:36
protectorHeath Stewart1-Jun-04 9:36 
GeneralCustom Control Design Time Problem Pin
Z.D.Biles1-Jun-04 8:40
Z.D.Biles1-Jun-04 8:40 
GeneralRe: Custom Control Design Time Problem Pin
Heath Stewart1-Jun-04 8:59
protectorHeath Stewart1-Jun-04 8:59 
GeneralRe: Custom Control Design Time Problem Pin
Z.D.Biles1-Jun-04 9:46
Z.D.Biles1-Jun-04 9:46 
Generalsystem language Pin
orcun colak1-Jun-04 7:45
orcun colak1-Jun-04 7:45 
GeneralRe: system language Pin
Heath Stewart1-Jun-04 8:55
protectorHeath Stewart1-Jun-04 8:55 
QuestionDataSet Pointer? Pin
Adam °Wimsatt1-Jun-04 7:27
Adam °Wimsatt1-Jun-04 7:27 
My best guess is that C# was designed this way on purpose... with garbage collection in mind, but here's the problem.

I have a dataSet that I initialize with XML data. Let's call it ds. I then load the ds into a dataGrid (dg). However, I want to modify the appearence of the data first. So here is what I have done:

<br />
<br />
// ds pre-initialized with xml data from file (ds is global)<br />
<br />
public void BindDataGrid()<br />
{<br />
  DataSet temp = ds;<br />
<br />
  // temp data is modified here<br />
  temp.AcceptChanges();<br />
  dg.DataSource = ds;<br />
  dg.DataBind();<br />
}<br />


The DataGrid looks good, but it turns out that temp was apparently just a pointer to ds because ds also reflects the changes I made to temp? How do I create and use a temporary dataset without modifing the original?
AnswerRe: DataSet Pointer? Pin
Heath Stewart1-Jun-04 8:51
protectorHeath Stewart1-Jun-04 8:51 
AnswerRe: DataSet Pointer? Pin
Anfernius1-Jun-04 8:51
Anfernius1-Jun-04 8:51 
AnswerRe: DataSet Pointer? Pin
LongRange.Shooter1-Jun-04 8:59
LongRange.Shooter1-Jun-04 8:59 
GeneralXML Serializing a Color Pin
Joel Holdsworth1-Jun-04 7:26
Joel Holdsworth1-Jun-04 7:26 
GeneralRe: XML Serializing a Color Pin
leppie1-Jun-04 8:32
leppie1-Jun-04 8:32 
GeneralRe: XML Serializing a Color Pin
Joel Holdsworth1-Jun-04 10:38
Joel Holdsworth1-Jun-04 10:38 
GeneralFloating Toolbar Pin
maxbale1-Jun-04 7:21
maxbale1-Jun-04 7:21 
Generalupgrading to 2003 - problems with reports Pin
econnor1-Jun-04 6:19
econnor1-Jun-04 6:19 
GeneralRe: upgrading to 2003 - problems with reports Pin
LongRange.Shooter1-Jun-04 6:39
LongRange.Shooter1-Jun-04 6:39 
GeneralRe: upgrading to 2003 - problems with reports Pin
econnor1-Jun-04 8:09
econnor1-Jun-04 8:09 
GeneralSetting Up Update Pin
MrJJKoolJ1-Jun-04 6:13
MrJJKoolJ1-Jun-04 6:13 
GeneralRe: Setting Up Update Pin
flow55551-Jun-04 6:24
flow55551-Jun-04 6:24 
GeneralRe: Setting Up Update Pin
MrJJKoolJ1-Jun-04 8:16
MrJJKoolJ1-Jun-04 8:16 
GeneralRe: Setting Up Update Pin
flow55551-Jun-04 11:22
flow55551-Jun-04 11:22 
QuestionHow to hide a form if the user close it? Pin
Ariadne1-Jun-04 6:07
Ariadne1-Jun-04 6:07 
AnswerRe: How to hide a form if the user close it? Pin
LongRange.Shooter1-Jun-04 6:37
LongRange.Shooter1-Jun-04 6:37 
AnswerRe: How to hide a form if the user close it? Pin
Heath Stewart1-Jun-04 6:45
protectorHeath Stewart1-Jun-04 6: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.