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

C#

 
GeneralRe: Font problem Pin
Christian Graus27-Feb-08 21:17
protectorChristian Graus27-Feb-08 21:17 
QuestionHow Can I Add a Project from JAVA to J#.Net???? Pin
Masterhame27-Feb-08 18:53
Masterhame27-Feb-08 18:53 
GeneralRe: How Can I Add a Project from JAVA to J#.Net???? Pin
Christian Graus27-Feb-08 19:29
protectorChristian Graus27-Feb-08 19:29 
GeneralLabel Multiline.. Pin
ptr2void27-Feb-08 18:38
ptr2void27-Feb-08 18:38 
GeneralRe: Label Multiline.. Pin
Xmen Real 27-Feb-08 18:46
professional Xmen Real 27-Feb-08 18:46 
GeneralRe: Label Multiline.. Pin
Arjun Marwaha27-Feb-08 18:53
Arjun Marwaha27-Feb-08 18:53 
GeneralRe: Label Multiline.. Pin
SeeSharp28-Feb-08 19:47
SeeSharp28-Feb-08 19:47 
GeneralSave and Retrieve DataSet information Pin
rdahlin27-Feb-08 18:25
rdahlin27-Feb-08 18:25 
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 );
}
}
GeneralRe: Save and Retrieve DataSet information Pin
Christian Graus27-Feb-08 19:44
protectorChristian Graus27-Feb-08 19:44 
GeneralRe: Save and Retrieve DataSet information Pin
Soumini Ramakrishnan28-Feb-08 19:54
Soumini Ramakrishnan28-Feb-08 19:54 
QuestionHow to determine if system is x86 or x64? Pin
Winkles27-Feb-08 18:18
Winkles27-Feb-08 18:18 
AnswerRe: How to determine if system is x86 or x64? Pin
Not Active27-Feb-08 19:18
mentorNot Active27-Feb-08 19:18 
GeneralRe: How to determine if system is x86 or x64? Pin
Winkles28-Feb-08 10:48
Winkles28-Feb-08 10:48 
AnswerRe: How to determine if system is x86 or x64? Pin
Arjun Marwaha27-Feb-08 19:52
Arjun Marwaha27-Feb-08 19:52 
GeneralRe: How to determine if system is x86 or x64? Pin
Winkles28-Feb-08 10:50
Winkles28-Feb-08 10:50 
AnswerRe: How to determine if system is x86 or x64? Pin
Ravi Bhavnani28-Feb-08 19:15
professionalRavi Bhavnani28-Feb-08 19:15 
GeneralRe: How to determine if system is x86 or x64? Pin
Winkles28-Feb-08 19:48
Winkles28-Feb-08 19:48 
Questionhow to create folder using .net c# Pin
sugunavathysubramanian27-Feb-08 18:01
sugunavathysubramanian27-Feb-08 18:01 
AnswerRe: how to create folder using .net c# Pin
Christian Graus27-Feb-08 18:03
protectorChristian Graus27-Feb-08 18:03 
AnswerRe: how to create folder using .net c# Pin
sathish s27-Feb-08 22:44
sathish s27-Feb-08 22:44 
QuestionRichTextBox control Undo Pin
nilam247727-Feb-08 17:54
nilam247727-Feb-08 17:54 
GeneralControl key Enter on datagrid Pin
dungbt27-Feb-08 17:52
dungbt27-Feb-08 17:52 
GeneralRe: Control key Enter on datagrid Pin
Christian Graus27-Feb-08 18:02
protectorChristian Graus27-Feb-08 18:02 
GeneralRe: Control key Enter on datagrid Pin
dungbt27-Feb-08 19:41
dungbt27-Feb-08 19:41 
GeneralRe: Control key Enter on datagrid Pin
Christian Graus27-Feb-08 19:46
protectorChristian Graus27-Feb-08 19:46 

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.