Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator
Iranian Programming Support

Csharp TeaM

Top posting users this month

Latest topics

» html to c# source code convert help
by launchar Tue Dec 06, 2016 7:22 am

» User input
by nesraz Sun Dec 20, 2015 8:39 am

» darkhaste source mediaplayer baraye b4a
by parham01 Tue Dec 15, 2015 10:31 am

» Tolide esme file gheire tekrari
by sajjad3011 Fri Jul 31, 2015 5:00 pm

» 368 library basic 4 android
by alimusavi71 Fri Jul 17, 2015 6:45 pm

» نرم افزار دریافت لایسنس آنتی ویروس نود 32
by programmer-x Wed Jul 15, 2015 3:19 pm

» help for java applications
by launchar Wed Jul 01, 2015 12:25 am

» Nimbuzz id Maker auto Captcha & Auto add FlooD & id BloCker
by briant Sat Jun 20, 2015 12:46 pm

» best mobile server v.1.0.0 persian edition
by programmer-x Fri Jun 19, 2015 12:41 am

» plz help me i neez xml code for spy bot
by alone Sun Mar 22, 2015 9:30 pm

» Dialogs Lib {Basic 4 Android}
by abdo0o Mon Mar 09, 2015 4:02 pm

» Room + PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:06 am

» PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:03 am

» سی شارپ سورس
by tr0 Wed Dec 24, 2014 12:15 pm

» help plz auto maker ids
by launchar Wed Dec 17, 2014 5:57 pm

» Join Multi Id To Room + Captcha [ Badbuzz Team ] In Seri Ba AgsXMPP !!
by abdo0o Fri Dec 12, 2014 4:47 am

» Amoozesh Ersale Sms Dar B4a
by abdo0o Fri Dec 12, 2014 4:43 am

» help me pls mehran brother
by launchar Wed Dec 03, 2014 6:36 pm

» plz help code Refresh captcha join Room
by ayad53 Wed Dec 03, 2014 12:24 pm

» please Help Me For AutoCaptchaa kardan IdMaker
by abdo0o Tue Dec 02, 2014 12:12 pm

» source C# bot addlist sender by ==> Alone_051@n.c
by walahazrat Mon Dec 01, 2014 2:34 am

» s2a sender tro help me pls
by walahazrat Mon Dec 01, 2014 2:28 am

» Help For {Data id } C# asixmpp.dll
by abdo0o Sun Nov 30, 2014 11:17 pm

» Help C# {Join & Left With Remoter}
by $iahi Tue Nov 25, 2014 10:31 am

» Source Nimbuzz User Searcher By Mehr,an [ Badbuzz TeaM ]
by waseemmalik Wed Nov 19, 2014 11:35 am


    data grid save setting

    Share
    avatar
    milanc0mplex
    New Member
    New Member

    Posts : 16
    Points : 28
    Thanks : 0
    Join date : 2014-08-25

    Open data grid save setting

    Post by milanc0mplex on Mon Sep 01, 2014 11:51 pm

    slm dustan mn mikham data grifldamo qable bastan savr konam v ba loade form
    loadesh konam
    save all settinge ramtin save mkne load ham mikone montaha edit v over writ na!
    avatar
    pokhte
    Csharp Admin
    Csharp Admin

    Posts : 139
    Points : 253
    Thanks : 82
    Join date : 2013-06-29
    Age : 22
    Location : IRaN/Fars/KaZerouN

    Open Re: data grid save setting

    Post by pokhte on Tue Sep 02, 2014 12:57 am

    [You must be registered and logged in to see this link.]

    in vase savet.

    inja > man vase kasra tozih dadam, codo be eshtebah vase c# gozashtam khodet use kon dige>
    [You must be registered and logged in to see this link.]





    There is no where to run. Destiny will be come...
    avatar
    milanc0mplex
    New Member
    New Member

    Posts : 16
    Points : 28
    Thanks : 0
    Join date : 2014-08-25

    Open Re: data grid save setting

    Post by milanc0mplex on Tue Sep 02, 2014 2:04 am

    mc ramtin jan man use kardam montaha vagty y file db save jode ro load mikoni bade har taqir dobare save nemishe
    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 19
    Location : Iran , Qazvin , Qazvin

    Open Re: data grid save setting

    Post by Mehran Mahmoudi on Tue Sep 02, 2014 3:36 am

    Salam Dooste Aziz,
    Shoma Mituni Hamon Codehaye Ramtin Ro Ba Yekam Taghir, Rooye Hamoon File i Ke Load Kardi Save Koni !! Fekr Nemikonam Kare Sakhti Bashe.
    Be Onvane Mesal Vaghti ye DataBase Ro Load Kardi FilePath Ro Too Ye String Negah Dar Ta Vaghti Ke Save Kardi Rooye Oon Save She!

    ___
    Manam Ye Chizi Dar In Mored Neveshte Boodam Ghablan Ke Ye Seri Bug Dasht Va Badan Fix Kardam:

    [You must be registered and logged in to see this link.]

    ___

    Alan Nemidunam Hanuzam Moshkel Dare Ya Na ! Vali Ye Negah Bendazi Bad Nist. Shayad Be Karet Biad.

    Movafagh Bashi.






    Anjomane Barname Nevisane Basic4Android
    __

    [You must be registered and logged in to see this link.]

    avatar
    milanc0mplex
    New Member
    New Member

    Posts : 16
    Points : 28
    Thanks : 0
    Join date : 2014-08-25

    Open Re: data grid save setting

    Post by milanc0mplex on Tue Sep 02, 2014 5:12 am

    inam use kardam hamshahri
    vali man ba net from 2 neveshtam
    dll t vase 4 e nemije date grid ro dar qalebe y file txt zakhire kard?
    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 19
    Location : Iran , Qazvin , Qazvin

    Open Re: data grid save setting

    Post by Mehran Mahmoudi on Tue Sep 02, 2014 9:43 am

    Chera Nashe !!
    Ba System.Xml Kheyli Rahat Mishe ! Hamun Raveshi Ke Ramtine Aziz Goft.
    Karaye Ziadi Ham Has Ke Khallaghiat Mikhad !! In Ye Nemune,
    Save :

    Code:
               List<string> rows = new List<string>();
                for (int i = 0; i < dataGridView1.Rows.Count - 1; i++)
                {
                    string thisRow = "";
                    for (int j = 0; j < dataGridView1.Rows[i].Cells.Count; j++)
                    {
                        if (dataGridView1.Rows[i].Cells[j].Value != null)
                            thisRow += dataGridView1.Rows[i].Cells[j].Value.ToString();
                        else
                            thisRow += "";
                        if (j != dataGridView1.Rows[i].Cells.Count - 1)
                            thisRow += "@";
                    }
                    rows.Add(thisRow);
                }
                using (System.IO.StreamWriter sw = System.IO.File.CreateText("dataGridViewRows.txt"))
                {
                    foreach (string x in rows)
                        sw.WriteLine(x);
                    sw.Close();
                }


    Load :


    Code:
               if (System.IO.File.Exists("dataGridViewRows.txt"))
                {
                    List<string> rows = new List<string>();
                    using (System.IO.StreamReader sr = System.IO.File.OpenText("dataGridViewRows.txt"))
                    {
                        while (!sr.EndOfStream)
                        {
                            string selectedRow = sr.ReadLine();
                            if (selectedRow != "")
                            {
                                rows.Add(selectedRow);
                            }
                        }
                        sr.Close();
                    }
                    for (int i = 0; i < rows.Count; i++)
                    {
                        string[] thisRow_Cells = rows[i].Split('@');
                        dataGridView1.Rows.Add(thisRow_Cells);
                    }
                }


    Dige Bastegi Dare Khodet Chetor Azash Estefade Koni !

    Rasti Vase Chi Gofti Hamshahri ?  Vaqean Qazvini Hasti ? Khande
    Be Har Hal Movafagh Bashi.






    Anjomane Barname Nevisane Basic4Android
    __

    [You must be registered and logged in to see this link.]

    avatar
    milanc0mplex
    New Member
    New Member

    Posts : 16
    Points : 28
    Thanks : 0
    Join date : 2014-08-25

    Open Re: data grid save setting

    Post by milanc0mplex on Tue Sep 02, 2014 11:21 am

    mc mamnoon dada
    rastesh az hamon moqe k to wildbuzz budid mishnaxtametun chun qazvin user kheili kam dare ja khurdam fahmidam hamchin programmere pro i dare

    rasi in coda multi columnse?
    avatar
    milanc0mplex
    New Member
    New Member

    Posts : 16
    Points : 28
    Thanks : 0
    Join date : 2014-08-25

    Open Re: data grid save setting

    Post by milanc0mplex on Tue Sep 02, 2014 11:23 am

    mc mamnoon dada
    rastesh az hamon moqe k to wildbuzz budid mishnaxtametun chun qazvin user kheili kam dare ja khurdam fahmidam hamchin programmere pro i dare
    khudam alvand am
    rasi in coda multi columnse?
    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 19
    Location : Iran , Qazvin , Qazvin

    Open Re: data grid save setting

    Post by Mehran Mahmoudi on Tue Sep 02, 2014 11:39 am

    Are Aziz Multie, Nahveye Karesham Intorie Ke Az Row e 0 Ta Akharin Row Mire.
    Tak Take Rowha Ke Mire Columnhash Ro Ham Az 0 Ta Akharin Column Mire !
    Dar Natije Tamame DataGridView Ro Migarde o Valueha Ro Get Mikone.

    Man Alvand Nistam Khode Qazvinam, Samte 4 Rah Bonyad Shahid Khande

    Movafagh Bashi.






    Anjomane Barname Nevisane Basic4Android
    __

    [You must be registered and logged in to see this link.]


    Sponsored content

    Open Re: data grid save setting

    Post by Sponsored content


      Current date/time is Thu Jun 22, 2017 3:21 pm