Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TGrid, TGridCell
Tue, Mar 1 2016 2:45 AMPermanent Link

erickengelke

I have figured out how to make a TGrid, and inserted TGridColumns of my choosing using the IDE.  But how do I make cells within the grid.  I know the database code cane do it, but I'd like to make my own grid.  I don't see a Cells[x,y] or Cells[y] parameter I can reference so I can make a receipt.  

Thanks
Erick
Tue, Mar 1 2016 3:41 AMPermanent Link

Matthew Jones

erickengelke wrote:

> I have figured out how to make a TGrid, and inserted TGridColumns of
> my choosing using the IDE.  But how do I make cells within the grid.
> I know the database code cane do it, but I'd like to make my own
> grid.  I don't see a Cells[x,y] or Cells[y] parameter I can reference
> so I can make a receipt.

I think you link a DataSet, and then add rows to that. The dataset
doesn't have to get data from the web.

--

Matthew Jones
Wed, Mar 2 2016 9:10 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Erick,

<< I have figured out how to make a TGrid, and inserted TGridColumns of my choosing using the IDE.  But how do I make cells within the grid.  I know the database code cane do it, but I'd like to make my own grid.  I don't see a Cells[x,y] or Cells[y] parameter I can reference so I can make a receipt.   >>

What you want are these methods:

http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TGridControl&method=AppendRow
http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TGridControl&method=InsertRow
http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TGridControl&method=DeleteRow

And to modify any of the rows, use this property:

http://www.elevatesoft.com/manual?action=viewprop&id=ewb2&comp=TGridControl&prop=Rows

Tim Young
Elevate Software
www.elevatesoft.com
Image