Hi,
Here is my senerio i have bound field parent and child consist of template field and bound field.once i add a new parent i can able to add the child row but the child row is inheriting the child row properties.when i enter the values in the non template field and hit enter the value of the nontemplate field gets updated the properties.
I had tried to make the particula field to hidden but that is affecting the entire child row.
Regards,
Hsakarp.
Hello Hsakarp,
Thank you for your reply.
If your requirement is to hide the Delete column for the whole child band of a new parent row, I suggest using ManualLoadOnDemand and generating a customized child grid.
Alternatively, if you need to hide only the templated button control for a newly added row, I would suggest handling the InitializeRow event of the grid. Note that it is also fired for each row in the grid after a row has been added. Therefore, the newly added row may be conditionally identified by its key and the templated button (which would already be instantiated), hidden using something similar to:
(e.Row.Items[1].FindControl("Button1") as Button).Visible = false;
Please let me know if this helps.
Hi petar,
yes,i want to hide the column completely not disabling the editing feature.
Thank you for posting in the community.
I would need some clarification as to the specifics of your requirement. Are you trying to hide a column in the child band, disallow editing of a particular bound field.
Any additioanal information you can provide would be helpful.