- sh4d0w: Netflix? Ugyan, VW előfizetés!
- Elektromos rásegítésű kerékpárok
- WhrlpoolMind: Az eredeti lemez utánozhatatlan illata
- sziku69: Fűzzük össze a szavakat :)
- Geri Bátyó: Megint tahó voltam – SZEMÉLYISÉGFEJLŐDÉS
- Luck Dragon: Asszociációs játék. :)
- Meggyi001: Nyilvános wc-k.....még mindig hiánypótló...
- sziku69: Szólánc.
- Mr Dini: Mindent a StreamSharkról!
- GoodSpeed: AMD Ryzen 7 7700X vs AMD Ryzen 9 9900X Cinebench R23 & R24 Benchmarkokban mérve
Új hozzászólás Aktív témák
-
Sziasztok!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace tobbVektorBeszurTorol
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string[] Benevek = new string[] {"Hack Elek"};
string[] BeAzon = new string[] {"HackE"};
string[] Nevek = new string[50];
string[] Azon = new string[50];
int elemszam = 0;
//int elemszam_Azon = 0;
private void buttonBeolvas_Click(object sender, EventArgs e)
{
for (int i = 0; i < elemszam; i++)
{
Nevek[elemszam] = Benevek[i];
Azon[elemszam] = BeAzon[i];
elemszam++;
}
buttonLista.Enabled = true;
}
private void buttonLista_Click(object sender, EventArgs e)
{
dataGridViewLista.RowCount = elemszam;
dataGridViewLista.ColumnCount = 3;
dataGridViewLista.RowHeadersWidth = 150;
dataGridViewLista.Columns[0].HeaderCell.Value = "Név";
dataGridViewLista.Columns[0].Width = 200;
dataGridViewLista.Columns[1].HeaderCell.Value = "Felhasználónév";
dataGridViewLista.Columns[1].Width = 200;
dataGridViewLista.Columns[2].HeaderCell.Value = "Rendelési azonosító";
dataGridViewLista.Columns[2].Width = 200;
for (int i = 0; i < elemszam; i++)
{
dataGridViewLista.Rows[i].HeaderCell.Value = (i + 1).ToString() + ". fehasználó";
}
}
}
}Ennek meg mi baja lehet? A dataGridViewLista.RowCount = elemszam; sornál akad ki, csak azt nem tudom, hogy mi a francért. Azt írja, hogy az elemszam 0.
"Value of '0' is not valid for 'RowCount'. 'RowCount' must be greater than or equal to 1.
Parameter name: RowCount"De miért? Hiszen folyamatosan növelem, úgy hogy jó legyen... eh
Üdv. core2
Új hozzászólás Aktív témák
Hirdetés
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- Bomba ár! Fujitsu LifeBook U939x- i5-8GEN I 8GB I 256SSD I 13,3" FHD Touch I HDMI I Cam I W11 I Gari
- Bezámítás! Lenovo Thinkpad T14 Gen 5 üzleti - Ultra 7 165U 16GB DDR5 512GB SSD Intel Graphics WIN11
- 3DKRAFT.HU - 3D NYOMTATÁS - AZONNALI ÁRAJÁNLAT - GYORS KIVITELEZÉS - 490+ POZITÍV ÉRTÉKELÉS
- ÁRGARANCIA!Épített KomPhone Ryzen 5 5600X 16/32/64GB RAM RTX 5060 8GB GAMER PC termékbeszámítással
- Bomba Ár! Fujitsu LifeBook E780 - i5 I 4GB I 250GB I DVDRW I 15,6" HD I Cam I W10 I Garancia!
Állásajánlatok
Cég: FOTC
Város: Budapest