|
-
Aug 30th, 1999, 08:40 PM
#2
Junior Member
I used the VB5 DBGrid extensively in my last app. Some of its shortcomings didn't become apparent to me until after I'd already delivered the app to the client, but I digress.
The means to add or remove columns in a DBGrid is fairly well hidden. Right click on the DBGrid and a popup menu appears. Choose Edit from this menu and then you can delete, insert and append columns. I would try to give you more detailed info than this, but it would probably just be confusing. What I'd do is just start a blank project with a DBGrid in it and start doing trial and error until you get the feel of it. That way you won't wind up destroying what you have set up.
As to getting at data in the grid: you can use the Columns method. DBGrid1.Columns(0) references the data in the first field of the current row. Columns(1) is the next field, and so on. The current row is available as the Row property: DBGrid1.Row, and you can manipulate that directly in code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|