Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
Move To Row
posted

Hi,

I have a two part question.  I have a datagrid connected to database.  One of the colums is a checkbox.  They are many rows in the grid.  When the grid is loaded I would like for the active record to be the first row that the checkbox is unchecked.  So if they are twent records and the first 5 have a check mark in the checkbox field that record number 6 is the one that is active when the grid is loaded. 

2 part.

How can I move the change which record is selected using a button.  For example if I am on record # 6 and I push the forward button the active record advances one record or if I push the back button the record advances to the previous record.

 

Thanks,

Bryan K.

  • 138253
    Offline posted

    Hello Bryan,

    Thank you for your post. I have been looking through it and I created a sample project for you with the functionalities you want. Basically I handled the Loaded event of the XamDataGrid and iterate through the Records and activate the first that meets the criteria. Also I added two buttons and used DataPresenterCommands to change the ActiveRecord. Please let me know if you need further assistance on this matter.

    Looking forward for your reply.

    XamDataGridRecordUpAndDownButton.zip