Solved

Datagrid Control

Posted on 2004-10-01
3
171 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

762 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

20 Experts available now in Live!

Get 1:1 Help Now