Solved

Datagrid Control

Posted on 2004-10-01
3
189 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…

737 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