Jump to content
Sign in to follow this  
jeliey

vb.net-DataGridView

Recommended Posts

::icon_cry:: helo everyone...

since i'm new in vb.net
can anyone help me in this problem

how 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

Share this post


Link to post
Share on other sites
perghh senang jeee benda niii
heheheheh 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 box
that it easy dude. ko try dulu kalau tak leh baru aa aku kasi sample muahahahahahahahahha

Share this post


Link to post
Share on other sites
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....

Share this post


Link to post
Share on other sites
DevGuy wrote:usaha tangga kejayaan.malaysia boleh hang pun bolehhh. hehehe
kalau dah sangap nak mampus hang hantar aa email.tupun kalau mood aku baik aku hantar aaa sample hehehe


Kepada 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.

Share this post


Link to post
Share on other sites
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....

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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.

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.

Loading...
Sign in to follow this  

×
×
  • Create New...