.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 3rd, 2007, 10:30 AM
sathyan_8294 sathyan_8294 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 10 sathyan_8294 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 54 sec
Reputation Power: 0
How do i edit a selected row in datagrid?

i am using dotnet 2003.i am doing my project in vb.net windows application.i have two form in my project.first form is datagrid .In second form label and textboxes are avilable to save the entering values in datagrid of first form through this 2nd form.my problem is,if i select the row or record and click edit menu means,want to display the values of that selected row in textboxes of second form.
for example,
in first form,
there are 4 columns named as name,age,rollno,address in datagrid.
values are ramu for namecolumn,24 for age column,42 for rollno column,cbe for address column.now values in datagrid like below
name age rollno address
ramu 24 42 cbe

in 2nd form,there are 4 label and 4 textbox.textbox arenamed as nametextbox,agetextbox,rollnotextbox,addresstextbo x.
my problem is,
in first form,
if i select the row(ie.,ramu,24,42,cbe) and i click edit menu means,i want to display the values automatically (ramu in nametextbox,24 in agetextbox,42 in rollnotextbox,cbe in addresstextbox)in 2nd form.
during runtime in vb.net windows application.so how i automatically display the values of row in each textbox.plz help me.

Reply With Quote
  #2  
Old July 18th, 2007, 06:17 AM
manaswiny manaswiny is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 1 manaswiny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 47 sec
Reputation Power: 0
You can get the ID of the selected record in the grid.By using that ID You will fire a query for getting the details from the table on Edit clicking and set the values to the respective text boxes.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > How do i edit a selected row in datagrid?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT