?
Solved

Datagrid Control

Posted on 2004-10-01
3
Medium Priority
?
192 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 1000 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Simple Linear Regression

752 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