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!

Datagrid questions

Status
Not open for further replies.

ixian

Programmer
Jul 13, 2001
128
US
Hey all,

Okay this is the questions?
txtCN is indexed 0 thru 15
dg1 is the datagrid
cmdCDG is the command button
all is on one form

1)-a-
How do you add more columns in a datagrid with caption in each collumn via the txtCN(index)?
-b-
For the txtCN(index) that dont have any text; not to make a data column?
-c-
To change the font size on each column?

2)
Is there a way to save the data from in the grid not using Excel, Access, SQL, or other db's/spreadsheet appliciations?


I have be trying to do it like the

Private sub cmdCDG_Click()

dim i is integer

dg1.columns.add i
dg1.columns(0).caption = txtcn(index).text

etc

not doing it with invalid column index?

Aaron Fear is the mind killer!!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top