If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Datagrids - Editing, Selecting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-04, 12:36
jhuck jhuck is offline
Registered User
 
Join Date: Jan 2004
Posts: 53
Datagrids - Editing, Selecting

Hello,

If anyone could help me it would be great.

I have a datagrid that is populated by a recordset I created.

Can I changes values in this datagrid?, I want them to also be changed in my tables

My main goal is to perform math using a number in one of the columns, and then return the new number.

Can I select one of these values?, ie. the value of the column set off another query or form.

Any examples or explanation would be great.

Thanks Jason
__________________
Jason
Reply With Quote
  #2 (permalink)  
Old 01-12-04, 15:13
jhuck jhuck is offline
Registered User
 
Join Date: Jan 2004
Posts: 53
I apologize for not specifing this is for VB6
__________________
Jason
Reply With Quote
  #3 (permalink)  
Old 01-16-04, 00:47
Rushi Rushi is offline
Registered User
 
Join Date: Jan 2004
Location: India
Posts: 62
Smile

It is possible to change the values of table using a data grid. actually when you change any value in the datagrid, the values will be changed in the base table also.
But it is very difficult (FOR ME IT WAS IMPOSSIBLE) to identify the current row and column number in data grid.
Instead I will say, you should use MSH Flex Grid.
It is more flexible than datagrid.
There are many events of MSHFlexGrid that you can use for the calculation. Only problem is MSHFlex Grid is readonly. So you will need some text boxex to get the data of a current cell of the grid.
After performing the calculations you require, you can copy the data from text box to grid and then from grid to table.

Just go thorugh the events and PROPERTIES of MSHFlexGrid.

You will never want to use DataGrids once you use MSHFlexGrids.

Good Luck.

Reply me if you find some better solutions with datagrids instead of MSHFlexGrids. It will be helpful for me too.
__________________
Regards,

Rushi
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On