Jump to content
Son zamanlarda artan kullanıcı hesap hırsızlıkları sebebiyle tüm kullanıcılara şifre sıfırlama maili gönderilmiştir. Lütfen güveli şifreler seçiniz. Mevcut e-mail adresinize erişemiyorsanız, en aşağıdaki destek linkinden bize ulaşınız. ×

Grid Oluşturma Hatası


 Share

Recommended Posts

Grid oluşturma hatası

Selamun Aleyküm Arkadaşlar Grid Oluştururken son gelen veriyi yazıyor diğerlerini  siliyor yardımcı olursanız sevinirim.

 

 

 

Grid.SetCellText("Grid1", i, 0, "#", true);
Grid.SetCellText("Grid1", i, 1, "Stok Kodu", true);
Grid.SetCellText("Grid1", i, 2, "Ürün Adı", true);
Grid.SetCellText("Grid1", i, 3, "Barkod", true);
Grid.SetCellText("Grid1", i, 4, "Birim Fiyat", true);
Grid.SetCellText("Grid1", i, 5, "Adet", true);
Grid.SetCellText("Grid1", i, 6, "Marka", true);
Grid.SetCellText("Grid1", i, 7, "Kategori", true);
Grid.SetCellText("Grid1", i, 8, "Tutar", true);


baglan();

db, err = SQLite3Connection:execute("SELECT * FROM anlik_satis");
row = db:fetch({},"a")


		ColumnCount = Grid.GetColumnCount("Grid1");
		
		
	
	
while row do

	id = row.id
	stok = row.stok_kod
	urun = row.urunadi
	barkod = row.barkod
	satis = row.satis
	adet = row.adet
	marka = row.marka
	kategori = row.kategori
	tutar = row.tutar
	
for i = 0, ColumnCount do
result = Grid.SetCellText("Grid1", i, 0, id, true);
end
	for i = 0, ColumnCount do
result = Grid.SetCellText("Grid1", i, 1, stok, true);
	end
	for i = 0, ColumnCount do
	
result = Grid.SetCellText("Grid1", i, 2, urun, true);
end

	for i = 0, ColumnCount do
	
result = Grid.SetCellText("Grid1", i, 3, barkod, true);
end
	for i = 0, ColumnCount do
result = Grid.SetCellText("Grid1", i, 4, satis, true);
end
	for i = 0, ColumnCount do
	
result = Grid.SetCellText("Grid1", i, 5, adet, true);
end
	for i = 0, ColumnCount do
result = Grid.SetCellText("Grid1", i, 6, marka, true);
end
	for i = 0, ColumnCount do
result = Grid.SetCellText("Grid1", i, 7, kategori, true);
end
	for i = 0, ColumnCount do
result = Grid.SetCellText("Grid1", i, 8, tutar, true);
end
	


row = db:fetch(row,"a");
end

result, err = db:close();



kapat();

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...