GrapeCity Forums

The GrapeCity Message Boards
Welcome to GrapeCity Forums Sign in | Join | Help
in Search

Databinding questions

Last post 04-22-2009, 5:16 PM by scotts. 3 replies.
Sort Posts: Previous Next
  •  04-21-2009, 7:26 PM 77082

    Databinding questions

    Hi everybody. I am thinking about a method that is similar to Access. I want to assign some fields on farpoint to some fields in the database, but not all of them. Is there anyway I can assign individual column with individual column fields in the database? Please let me know, thank you very much.

  •  04-22-2009, 3:40 AM 77086 in reply to 77082

    Re: Databinding questions

     

    In the latest version of spread we can assign individual column to a specific column fields in the database. Try the following steps:

    a) Set the connection to the database.

    b) Define the column and data field.

     

    I have attached a sample code which implements the mentioned functionality, I hope it will you.

    Thanks,

    Deepak Sharma 

     

     


    Deepak Sharma
    GrapeCity FarPoint
  •  04-22-2009, 12:33 PM 77113 in reply to 77086

    Re: Databinding questions

    Thanks for the reply Sharma, I am just wondering if i make changes to the spread, would I be able save the changes?
  •  04-22-2009, 5:16 PM 77131 in reply to 77113

    Re: Databinding questions

    Hello,

    Changes to the Spread programatically can be saved back to the database, but you need to use the SetCellDirtyFlag to mark the cells with changes as dirty. Then, when you call the DataSave method, the changes would be updated.


    Scott S.
    Product Manager, Spread ASP.NET
    GrapeCity FarPoint
View as RSS news feed in XML
     FarPoint Forums Home