jeliey 0 Report post Posted August 10, 2009 ::icon_cry:: helo everyone...since i'm new in vb.netcan anyone help me in this problemhow to display details of the data from DataGridView into textboxes.in my DataGridView, there's only have the cust_id and cust_name. when the user select any row of the DataGridView, and click the button 'Show Details' then all the info of that customer will be displayed in the textboxes...hope quick answer....tq Quote Share this post Link to post Share on other sites
DevGuy_1 0 Report post Posted August 10, 2009 perghh senang jeee benda niiiheheheheh ada 2 option sama der ko buat yg ko nak ni atau pun satu lagi ko buat master detail.tapi since ko nak macam ko tulis ni ni solution dia.kalau nak master detail len kali aku ajar.kan ko dah ada Cust_id tu.ko double click kat gridko tu kang kuar aa function apa yg ko kena buat apa ek aku pun dah tak ingat.selectedgrid kot something like that aa.ala ko double click jer kat grid ko tu.lepas tu kobuat aaa select stetemant atau function utk retrieve setiap data tu bindkan kepada text boxthat it easy dude. ko try dulu kalau tak leh baru aa aku kasi sample muahahahahahahahahha Quote Share this post Link to post Share on other sites
jeliey 0 Report post Posted August 11, 2009 ::kopfschuettel:: lorr...i've tried, but seems not working...there's no output in the text, i mean the textboxes can't retrieve the data Quote Share this post Link to post Share on other sites
DevGuy_1 0 Report post Posted August 11, 2009 usaha tangga kejayaan.malaysia boleh hang pun bolehhh. hehehekalau dah sangap nak mampus hang hantar aa email.tupun kalau mood aku baik aku hantar aaa sample hehehe Quote Share this post Link to post Share on other sites
DrASAG_1 0 Report post Posted August 13, 2009 wei devguy, nak kena tgk mood hang jugak ka? ekekekeke.. aku dah start buat web baru, guna asp.net+vb.net. cam best jer.. wakakakaka... tapi sbb sini depa tanak tukar .net framework 3.5, nak jgk 2.0 tu, pastu sql server tu pon depa tak bg kacau, aku pakai access jer ar.. huhuhuh.... takleh la aku nak godek lebih2. sorry TS iklan jer nih...tentang masalah ko tu, coba ko paste sket apa yg ko dah buat, maybe something tertinggal ker, terpeleot ker kat code tu.... Quote Share this post Link to post Share on other sites
DevGuy_1 0 Report post Posted August 13, 2009 hahaha dr asag. k laaakasik aa email nanti aku kasik kalau aku tak bzz hehehehe. access jer hmm tak perr aa janji leh buat Quote Share this post Link to post Share on other sites
jeliey 0 Report post Posted August 18, 2009 sorry guys,got prob with my sql server...hope u can wait a lil bit Quote Share this post Link to post Share on other sites
TJ-Ariff 40 Report post Posted August 18, 2009 DevGuy wrote:usaha tangga kejayaan.malaysia boleh hang pun bolehhh. hehehekalau dah sangap nak mampus hang hantar aa email.tupun kalau mood aku baik aku hantar aaa sample heheheKepada DevGuy;aku rasa cara ko menyampaikan tu boleh diubah.dan Aku tahu ko memang pandai dalam bab programming nie, tetapi tak perlulah ko menggunakan ayat semacam itu. Quote Share this post Link to post Share on other sites
DrASAG_1 0 Report post Posted August 18, 2009 hehehhe.. ha ha DevGuy kena tegur (nada Upin & Ipin).... hikhikhik... ermmm betul tu, bahasa melambangkan bangsa... maybe dia terpeleot sket nak tulis tu, biasa ar tu... so, TS sql server dah ok ke blom... tapi aku rasa nak paste secebis code nak retrieve record tu tak perlu tunggu sql server up pon.... Quote Share this post Link to post Share on other sites
DevGuy_1 0 Report post Posted August 19, 2009 hahaah ala jgn aa emo masa ni aku baru bertekak ngan client ni (cina lak tu) cakap cam bagus jer sebab tu mood aku tak elok.ala biasak aa benda tuu.kalau korang pun sure cakap benda tu kan.not everybody perfect .even yg dah tua pun cakap marah cam tu .pasal apa.aku buat dek jer tapi hati aku membara laa gakk tu yg aku kata hari tu aku tak der mood tuuu. cool dude.i dont mean to hurt anybody.BTW thank to remind. bukan sebab pandai programming pun kita tak cakap benda22 cam tu. betul takk Quote Share this post Link to post Share on other sites
gigivilla 0 Report post Posted October 6, 2009 ok lah ni aku bagi sikit kat hang...Private Sub DataGridView2_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView2.CellClick Dim i As Integer i = DataGridView2.CurrentRow.Index txt_tmpPnokp.Text = DataGridView2.Item(0, i).Value TextBox2.Text = DataGridView2.Item(1, i).Value TextBox3.Text = DataGridView2.Item(2, i).Value End Sub Quote Share this post Link to post Share on other sites