Kamis, 02 Desember 2010

Menulis String pada Header Row DataGridView

Sehubungan dengan teman-teman yang banyak bertanya soal menulis string di header rows pada Datagridview, maka postingan untuk kali ini adalah tutorial menulis string di headerDataGridView. Memang untuk menuliskan data pada header rows DataGridView tidak sama sintaknya dengan menuliskan pada header colomn. Pada header colomn programer dapat menulislan string dengan GUI, tidak harus dengan coding, dengan cara klik kanan DataGridView->pilih edit column, pada field header text masukan nama yang header yang diinginkan, akan tetapi pada header rows programer harus melakukannnya dengan code.

OKe... Sekarang persiapkan project baru (File->new project, isikan nama project sesuai dengan keiinganan)
langkah selanjutnya
1. Tambahkan control DataGridView dan Button pada form, atur dan tata sehingga membentuk seperti gambar diatas
2. Pada event Form_load(Double klik pada form kosong), tambahkan code berikut ini.

Code Diatas berfungsi untuk menambahkan row pada dataGridView saat form pertamakali dijalankan
3. Selanjutnya tambahkan code berikut ini pada button1
 dataGridView1.Rows[0].HeaderCell.Value = "TES";
Pada Source code diatas, berfungsi untuk menambahkan string pada Header Rows DataGridView. untuk rows[0] menunjukan indek dari rows, sehingga jika code tersebut diganti dengan rows[1] maka header rows yang akan ditulisa dengan kata "TES" adalah header rows pada baris ke-dua. sebagai catatan indek baris pada dataGridView dimulai 0

untuk download file binarynya silahkan download disini
for more information contact us on
sedangkan untuk mendapatkan full projectnya silahkan tinggalakan email di kotak komentar. full project akan disend ke email tersebut. 

18 komentar:

  1. mas, saya minta full code nya yah! email saya
    ditunggu yah...

  2. sebelumnya kami minta maaf atas keterlambatan me reply saudara

    untuk project "Menulis string pada header row datagrid" sudah di send ke email Silahkan check inbox email tersebut


  3. mas minta full project y


  4. mas saya minta full code nya di

  5. full project sudah di sent ke email silahkan cek inbox email semoga bisa bermanfaat dan berguna

  6. mas saya minta full code nya di

  7. Ibliskh Letter E12 Juli 2013 pukul 14.59

    mw tanya nh kang,,,,

    kalo header untuk "inipanser" th apa????

    public Form1()
    IniParser.FileIniDataParser parser = new FileIniDataParser();
    configuration = parser.LoadFile("TestIniFile.ini");

    script d atas, th header'y apa dl c#
    using ?????

  8. Ibliskh Letter E12 Juli 2013 pukul 15.01

    IniParser.FileIniDataParser parser = new FileIniDataParser();
    IniData parsedData = parser.LoadFile("TestIniFile.ini");

    ini header'y pke using ? apa????

  9. New York has come and gone, and for those who have barely had time to lift their heads, don't worry, we have taken the time to compile the most important trends from the city. Looking through the hundreds of collections has taught us plenty, and here is what we have learned: Relax. Really. Designers want their customers to take a load off. The reigning silhouette was a kate spade surprise sale little more casual and a little less rigid than usual. And even if a trend wasn't directly to related to living the good life, it was often styled in a way that seemed to suggest it. Not kate spade saturday sure what we mean? Scroll through to see.
    Student designs were selected for the show through a rigorous judging process led by this year's Style Lab Mentors: designers Juan Carlos Obando, Anna Corinna Sellinger, Christian Siriano and Daniel Vosovic as well as Frida Tjoa of Sam Edelman and Rita Watson of Kate Spade. All in, 37 fashion students and 15 accessory students were chosen to present 105 looks in Saturday's shows.
    But, it's not all depressing on the shopping front! Winter goods are also on their way out to make way for fresh new spring lines, kate spade bags and there are lots of great discounts to be found across the board. Check out the sales happening right now at our favorite retailers below."It was whimsical fairlytale," said Creative Director Deborah Lloyd at the presentation of Kate Spade New York's fall 2015 collection on Friday, when asked about her inspirations. "We've seen a lot of them in film recently, but I loved them growing up." kate spade handbags outlet Lloyd is British, so her childhood reference points skew European — Roald Dahl's "Tales of the Unexpected" and "Chitty Chitty Bang Bang." Truly Scrumptious, the character who famously sang that film's theme song, was Lloyd's childhood heroine. "There's an ode to her in the chocolate box bows and frills and pink." But the influence of one American film, "Fantastic Mr. Fox," visibly had a huge influence kate spade usa website in the fur accents and bright red plaids. "You'll see a few foxy ladies in here," she said.
    Beech feels a big part of that success owes to the fact that each film tells a story — with a beginning, middle and end — and that it’s a series, so that when a new film comes out, people have a reference point for it and want kate spade new york to see what’s next. The decision to cast only one star was also intentional, to lend continuity.Another fashion brand that has become known for telling stories with its growing ouvre of fashion films is Rachel Antonoff. A young designer with limited resources, Antonoff made films instead of showing at fashion week for two seasons in a row. In past interviews, the designer has told me that kate spade diaper bag her films have had a great reception and and are “easier to call in favors for” and thus cheaper than presentations to put together. It doesn’t hurt that Antonoff’s friends include people like Mae Whitman, Jenny Slate and Lena Dunham.