Click here to Skip to main content
15,902,802 members
Home / Discussions / C#
   

C#

 
GeneralRe: What object is that Error List? Pin
Xmen Real 27-Feb-08 15:07
professional Xmen Real 27-Feb-08 15:07 
QuestionHow to use ^ in C#? Pin
Joplinazz27-Feb-08 13:53
Joplinazz27-Feb-08 13:53 
AnswerRe: How to use ^ in C#? Pin
Anthony Mushrow27-Feb-08 13:58
professionalAnthony Mushrow27-Feb-08 13:58 
GeneralRe: How to use ^ in C#? Pin
Joplinazz27-Feb-08 14:24
Joplinazz27-Feb-08 14:24 
GeneralRe: How to use ^ in C#? Pin
Guffa27-Feb-08 14:26
Guffa27-Feb-08 14:26 
JokeRe: How to use ^ in C#? Pin
Jammer28-Feb-08 13:35
Jammer28-Feb-08 13:35 
AnswerAdditional Edification Pin
Ennis Ray Lynch, Jr.27-Feb-08 16:54
Ennis Ray Lynch, Jr.27-Feb-08 16:54 
GeneralSaving DataSet Information and then retrieving it [modified] Pin
ConfusedProgger27-Feb-08 13:20
ConfusedProgger27-Feb-08 13:20 
My problem is as follows. The program works by creating new dataTable from a schema that the user has specified. once the person creates the table they fill it out, and hit the save command. The dataset is then saved to the sample object and serialized for later use. The problem occurs after the file is reloaded to edit. The previous data saved correctly and is displated on the datagrid. However if i change the data and then hit the save command again, it does not appear to save. Upon closing and reopening of the file, the dataSet looks as the origonal. Please help me. thanks,

public Sample sample;

public void sampleToEdit( Sample s, string path )
{
dataGrid1.DataSource = s.sampleData;
dataGrid1.DataMember = "sample";
sample = s;
}

private void saveCmd_Click(object sender, System.EventArgs e)
{
if ( isNewSample )
{
// this code runs when sample is created
Container sampleContainer = getContainer( templateDir + "sampleContainer.dat" );
string filename = sampleDir + uniqueCode + ".smp";
sampleContainer.container.Add(filename);
setContainer(sampleContainer, templateDir + "sampleContainer.dat" );

sample.sampleData = dataGrid1.DataSource as DataSet;
storeSample( sample, filename );
}
else
{
// this code runs when someone opens table to edit
string filename = sampleDir + uniqueCode + ".smp";
sample.sampleData = dataGrid1.DataSource as DataSet;
sample.sampleData.AcceptChanges();
storeSample( sample, filename );
}
}

modified on Wednesday, February 27, 2008 7:26 PM

GeneralFXCop Help Pin
Jammer27-Feb-08 13:07
Jammer27-Feb-08 13:07 
GeneralRe: FXCop Help Pin
Vikram A Punathambekar27-Feb-08 18:25
Vikram A Punathambekar27-Feb-08 18:25 
GeneralRe: FXCop Help Pin
Jammer28-Feb-08 9:18
Jammer28-Feb-08 9:18 
QuestionHow to assign a string value to a boolean cell in a datagridview? Pin
Kristhian Herrera27-Feb-08 12:29
Kristhian Herrera27-Feb-08 12:29 
GeneralRe: How to assign a string value to a boolean cell in a datagridview? Pin
Xmen Real 27-Feb-08 14:36
professional Xmen Real 27-Feb-08 14:36 
GeneralRe: How to assign a string value to a boolean cell in a datagridview? Pin
Kristhian Herrera27-Feb-08 14:55
Kristhian Herrera27-Feb-08 14:55 
GeneralRe: How to assign a string value to a boolean cell in a datagridview? Pin
Xmen Real 27-Feb-08 14:59
professional Xmen Real 27-Feb-08 14:59 
GeneralRe: How to assign a string value to a boolean cell in a datagridview? Pin
Kristhian Herrera27-Feb-08 15:05
Kristhian Herrera27-Feb-08 15:05 
GeneralRe: How to assign a string value to a boolean cell in a datagridview? Pin
Xmen Real 27-Feb-08 15:08
professional Xmen Real 27-Feb-08 15:08 
GeneralRe: How to assign a string value to a boolean cell in a datagridview? Pin
Soumini Ramakrishnan28-Feb-08 20:44
Soumini Ramakrishnan28-Feb-08 20:44 
GeneralHook keyboard key in Webbrowser Pin
ric9427-Feb-08 11:04
ric9427-Feb-08 11:04 
GeneralRe: Hook keyboard key in Webbrowser Pin
Luc Pattyn27-Feb-08 11:34
sitebuilderLuc Pattyn27-Feb-08 11:34 
GeneralRe: Hook keyboard key in Webbrowser Pin
ric9427-Feb-08 20:44
ric9427-Feb-08 20:44 
GeneralRe: Hook keyboard key in Webbrowser Pin
Luc Pattyn27-Feb-08 22:27
sitebuilderLuc Pattyn27-Feb-08 22:27 
GeneralRe: Hook keyboard key in Webbrowser Pin
ric9427-Feb-08 23:19
ric9427-Feb-08 23:19 
GeneralRe: Hook keyboard key in Webbrowser Pin
Luc Pattyn28-Feb-08 2:12
sitebuilderLuc Pattyn28-Feb-08 2:12 
GeneralRe: Hook keyboard key in Webbrowser Pin
ric9428-Feb-08 11:07
ric9428-Feb-08 11:07 

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.