Solved

Datagrid Control

Posted on 2004-10-01
3
173 Views
Last Modified: 2010-04-17
I am querrying a database and inserting therecordsource in a datagrid. when a user clicks on arecord in the data grid, i need to be able to know the particular record and modify it. Hoew do i go about it???
0
Comment
Question by:ice2404
3 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 250 total points
ID: 12198547
Hi ice2404,

The datagrid control has various events, the click event for example or the selchange event might be useful here. You should decide what "event" you need to react to, you can then code in the appropriate event handler to make the modifications to the cells.

When you select a record in a datagrid, you are automatically selecting the corresponding row in the underlying data source. You can then manipulate the properties of this row directly to affect the values in that row.

Tim Cottee
Brainbench MVP for Visual Basic
http://www.brainbench.com
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now