Click here to Skip to main content
15,891,248 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to change link color on datagridview by code Pin
GenJerDan13-Feb-12 3:49
GenJerDan13-Feb-12 3:49 
QuestionWriting Text on Panel Pin
Danzy8312-Feb-12 14:35
Danzy8312-Feb-12 14:35 
AnswerRe: Writing Text on Panel Pin
Luc Pattyn12-Feb-12 15:56
sitebuilderLuc Pattyn12-Feb-12 15:56 
Questionrdcl report tablix Pin
zigzagooo12-Feb-12 11:33
zigzagooo12-Feb-12 11:33 
Questionhow to export contents datagridview to an XML file Pin
nassimnastaran12-Feb-12 8:34
nassimnastaran12-Feb-12 8:34 
AnswerRe: how to export contents datagridview to an XML file Pin
Abhinav S12-Feb-12 19:17
Abhinav S12-Feb-12 19:17 
GeneralRe: how to export contents datagridview to an XML file Pin
nassimnastaran13-Feb-12 4:06
nassimnastaran13-Feb-12 4:06 
GeneralRe: how to export contents datagridview to an XML file Pin
nassimnastaran14-Feb-12 7:11
nassimnastaran14-Feb-12 7:11 
Here is my code , plz help me !
C#
SaveFileDialog saveDialog = new SaveFileDialog();
saveDialog.Filter = "Xml files (*.xml)|*.xml";
saveDialog.FilterIndex = 2;
saveDialog.RestoreDirectory = true;
saveDialog.InitialDirectory = "d:\\";
saveDialog.FileName = "XML File";
saveDialog.Title = "XML Export";

if (saveDialog.ShowDialog() == DialogResult.OK)
{
    string OutPutXMLFile = "";
    System.Xml.XmlDocument XMLDoc = new System.Xml.XmlDocument();
    for (int i = 0; i < DataGridView1.Rows.Count; i++)
    {
        OutPutXMLFile = "";
        for (int j = 0; j < DataGridView1.Columns.Count; j++)
            OutPutXMLFile += String.Format("{0:0.00}", DataGridView1.Rows[i].Cells[j].Value);
        XMLDoc.CreateElement(OutPutXMLFile);

    }
}

but I've got an Error to create a xml file !
thanks !
Questionanimate BackColor Form ... Pin
nassimnastaran12-Feb-12 4:08
nassimnastaran12-Feb-12 4:08 
QuestionRe: animate BackColor Form ... Pin
DaveAuld12-Feb-12 4:14
professionalDaveAuld12-Feb-12 4:14 
AnswerRe: animate BackColor Form ... Pin
nassimnastaran12-Feb-12 5:17
nassimnastaran12-Feb-12 5:17 
AnswerRe: animate BackColor Form ... Pin
Dave Kreskowiak12-Feb-12 4:41
mveDave Kreskowiak12-Feb-12 4:41 
QuestionHow to make resistor color code Pin
Brillian Kharisma12-Feb-12 0:10
Brillian Kharisma12-Feb-12 0:10 
SuggestionRe: has Problem about C# Pin
Shameel12-Feb-12 1:56
professionalShameel12-Feb-12 1:56 
AnswerRe: How to make resistor color code Pin
Dave Kreskowiak12-Feb-12 3:24
mveDave Kreskowiak12-Feb-12 3:24 
GeneralRe: How to make resistor color code Pin
Brillian Kharisma12-Feb-12 4:16
Brillian Kharisma12-Feb-12 4:16 
GeneralRe: How to make resistor color code Pin
Michel [mjbohn]12-Feb-12 4:38
Michel [mjbohn]12-Feb-12 4:38 
GeneralRe: How to make resistor color code Pin
Dave Kreskowiak12-Feb-12 4:39
mveDave Kreskowiak12-Feb-12 4:39 
AnswerRe: How to make resistor color code Pin
Luc Pattyn12-Feb-12 9:32
sitebuilderLuc Pattyn12-Feb-12 9:32 
RantRe: How to make resistor color code Pin
Paladin200013-Feb-12 7:47
Paladin200013-Feb-12 7:47 
QuestionDigit Presents Windows phone application development contest Pin
PrateekN11-Feb-12 8:48
PrateekN11-Feb-12 8:48 
QuestionHow to Handle DatagridView's keydown event during editing of cell Pin
Nabawoka11-Feb-12 6:27
Nabawoka11-Feb-12 6:27 
AnswerRe: How to Handle DatagridView's keydown event during editing of cell Pin
Nabawoka11-Feb-12 20:57
Nabawoka11-Feb-12 20:57 
QuestionPlease help me understand serial communication Pin
turbosupramk311-Feb-12 5:52
turbosupramk311-Feb-12 5:52 
AnswerRe: Please help me understand serial communication Pin
OriginalGriff11-Feb-12 9:50
mveOriginalGriff11-Feb-12 9:50 

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.