Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Datagrid Control

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A short article about a problem I had getting the GPS LocationListener working.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
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…

856 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