Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBGrid 1

Status
Not open for further replies.

cj92713696

Programmer
Nov 23, 2000
105
US
DBGrid - Visual Basic 6

I'm attempting to display data from a database in a DBGrid control (included w/Visual Basic 6). The data can be bound or unbound. I want to have sum cells that aren't editable with the other cells being editable. Is this possible w/the DBGrid? When I specify sum cells, I just mean auto-calculating fields (ie. like Excel).

Thanks,
CJ
 
Yes, you can lock the sum columns. On your VB form, right-click on the dbgrid control and select Properties. This will bring up the "Property Pages" builder. Select the "Layout" tab. Choose the column that you want locked and check the "Locked" check-box. This will prevent users from changing that column.

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top