Jump to content


Photo

Gridview and Cellsource


  • Please log in to reply
3 replies to this topic

#1 aldhor

aldhor
  • Members
  • 6 posts

Posted 29 January 2005 - 12:38 AM

Hiya all :

First I want to thank to Boki for its patience helping me in my last project smile.gif

My question is...
Can I connect a Table with a GridView with a Cellsource?
I dont know how can I retrieve the values in a the Grid.
I connect the Cellsource with the Table and the Grid but nothing happens, and I cannot see any propiety for give values automaticaly from a Datasource.

In this proyect I dont want use a DBGrid for some reasons.

Best regards
ALDHOR

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,194 posts
  • Gender:Male

Posted 29 January 2005 - 01:49 AM

Hello Aldhor,

Place one TTable (or Query) on Form, set TableName, Database and Activate it.

Place one GridView on form.

Place one TCellDataSource on form, set Grid property to point to GridView1 and DataSet to Table1.

Activate DataCellSource (set Active to true) and that's it.

If you want to do it from run-time, use DataCellSource1.Execute method for this.

Also, you can set columns in design time and then, set coPublicUsing flag for columns you like to be filled with DB data.

Hope that this help smile.gif

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 29 January 2005 - 11:34 AM

Hi Boki,

Whats the difference between TCellDataSource and a regular TDataSource?
G.W. van der Vegt

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,194 posts
  • Gender:Male

Posted 29 January 2005 - 03:20 PM

Hello Wim,

oops, I was flip DataCellSource with CellDataSource in previous post :oops: there is only a DataCellSource.

I was have a big plans with CellSources before, I was have a plan to made FPTCellSource, FolderCellSource , components for filling GridView.

For example: FolderCellSource to have possibility to read file icon, data, type...

If someone like to create them, I will help him smile.gif

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users