|
Rank: Newbie Groups: Member
Joined: 4/29/2008 Posts: 4
|
Where can I find sample code as to how to bind the cells in the grid to a database?[code=vb]
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
You can find it from the same source code that you asked in your previous questions. You may also want to go over the documentations, which are available both online and locally as a .chm file.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 4/29/2008 Posts: 4
|
I see nothing in documentation on how to bind to a database
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
The Grid control is a very data centric control and pretty much every sample that we have fill the Grid from a demo database; And data binding is also mentioned throughout our documentation. So we are not sure how you could have missed it. We can only guess that you didn't look at all. If that is the case, then I am not sure how we can help you further.
I would recommend you to load the sample project with Visual Studio and go over the samples one by one to understand how our product works first --- they should be fairly easy to understand for anyone who has basic ASP.NET knowledge. The documentation also provides a lot of useful information. You should read all the articles under “EO.Web Grid”.
We will be happy to answer your questions if you run into a specific issue during the process ---- but for questions as generic as "how to bind to a database" which is demonstrated pretty much by every sample and also explained through out the documentation, we really do not know how we can explain it better again here.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 4/29/2008 Posts: 4
|
I see nothing in the documentation that describes how individual columns in the grid are tied to specific fields being returned by a query.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, Each column has a DataField property that you will need to set: http://www.essentialobjects.com/ViewDoc.aspx?t=Grid%2fcolumns.htmlhttp://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.GridColumn.DataField.htmlNote data binding for the Grid is a one way process, not both ways, which means changes you made on the client side is not automatically populated back to your data source. If you want to save changes back to your data source, you should rely on a set of server side events mentioned here: http://www.essentialobjects.com/ViewDoc.aspx?t=Grid%2fediting.htmlHope this helps. Thanks
|
|