sql - DelphiXE2 : How to Display Data From Database to NextGrid -


i've searched around, ask local teacher @ school. there no way find how display data database nextgrid. used select * doesnt shown on next grid.

zquery1.close; zquery1.sql.clear; zquery1.sql.text := 'select * tb_siswa'; zquery1.open;  nextgrid1.clearrows; x:= 0;  while not zquery1.eof  begin   nextgrid1.addrow();   nextgrid1.cell[0,x].asstring := zquery1.fields[0].asstring;   nextgrid1.cell[1,x].asstring := zquery1.fields[1].asstring;   nextgrid1.cell[2,x].asstring := zquery1.fields[2].asstring;   nextgrid1.cell[3,x].asstring := zquery1.fields[3].asstring;   nextgrid1.cell[4,x].asstring := zquery1.fields[4].asstring;   inc(x);   zquery1.next; end; zquery1.close; 

any support please?

on nex suite component page, have nxdatacellsource component. place on form. place next grid on form. in nxdatacellsource properties, change datasource 1 using, zquery1. change associate properties nextgrid1 (or other name have associated nextgrid). set active true , enjoy.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -