Devexpress rowupdating cancel labuff dating
In the template field I will Place a label or some controls, So that it’s very easy to access those controls in the code behind by using Find Control method. Item Template is the content to display for the items in the Template Field.
Suppose if we are trying to hide primary key of our table, there is actually no need to hide. In the above Snippet you are seeing a label in Item Template that means whenever we are showing Grid View to the user Label will be visible to the user.
You can see the C# code below will give the row number whatever you are editing by New Edit Index property.
Secondly if you want to include a custom field (some button or link) in the same column it’s not possible.
So, you can use the Row Updated event to access this value.
The event's Row Handle parameter specifies the previous handle (position) of the row before the Row Updated event was raised.
We will use Template Field, whenever we want to define some custom control in the data bound controls like Grid View, Data Grid or Data Repeater.
If he clicks edit (or) in the edit mode he can be able to see the Textbox.