values from reality dating tv shows - Find control in rowupdating event
This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.
I have done this many times even i referred to my old project to see what i am doing wrong here but no use.
Hello Tabish82 I am also facing the same problem what did you find solution. i cant use sql datasource for this so i have used reguler population method on server side.
@clarifier Well, it's calling the code behind method every time. However you should pay attention to the implementation of the method. In my approach, you can leave the commandfield as is, then you can hide it as needed via code behind.
If it is expensive, this could easily sum up to a large cost. In this example, I am hiding it if the field "Scenario" of the grid shows the text "Actual" for the relevant row of the Row Data Bound event.
You can also assign multiple primary keys if desired by separating them with a comma (,). This allows you to create a new instance of a class and assign values to properties in one easy step.