Assign a value to the new row that is created

2 posts, 0 answers
  1. Prabhu
    Prabhu avatar
    25 posts
    Member since:
    Feb 2008

    Posted 17 Feb 2012 Link to this post

    Hi,

    My scenario is I have a gridview and I have several columns, in that one column is start time and the other end time.
    I also have a start button above the grid, on the click of which I need to create a new row at the same time i need to set the start time (current time) in that column, but here I should not click on the row again which is stating "Click here to add a new row".
    in the same wise I have a stop button, when i click on this the new row which is created should set the end time in the corresponding column and that row needs to be saved to DB, how should I do it? Please help

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 17 Feb 2012 Link to this post

    Hello,

     You should work directly with your data. If the collection bound to the grid is INotifyCollectionChanged, RadGridView will react immediately. 

    Kind regards,
    Vlad
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top