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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data grid caption

Status
Not open for further replies.

Mukesh2375

Programmer
Jan 31, 2003
19
0
0
IN
i made a data grid using a recordset.
i changed header for each column using dGrid.Columns(0).Caption = "Caption 1"
after some data updations, i refresh the recordset using
rs.Resync adAffectCurrent, adResyncAllValues
problem is the headers for DataGrid get reinitialised with field names of the recordset or with values like Expr1001. Also width of columns change. can anybody suggest me a remedy?

 
DataGrid1.HoldFields
rs.Resync
DataGrid1.Rebind [/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top