This is a migrated thread and some comments may be shown as answers.

Assign a value to the new row that is created

1 Answer 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Prabhu
Top achievements
Rank 1
Prabhu asked on 17 Feb 2012, 10:53 AM
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

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Feb 2012, 10:55 AM
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 >>
Tags
GridView
Asked by
Prabhu
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or