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 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.
Hi petar,
yes,i want to hide the column completely not disabling the editing feature.
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.
Thanks for the reply.wuold you please give me some links on how to create a customized child grid.I searched in the internet but i din find the proper Links.
hsakarp.
Please feel free to contact me if you have any further questions regarding this matter.
While adding a child row it would have to conform the format of its band (i.e it would not be possible to change a template field to a bound one), however it should be possible to control the format of templated controls as previously described in the InitializeRow event.
Please let me know if I have misunderstood you in any way.
i had done this before.i have a question on adding child rows.on runtime from server side can i able to define the feild.? (i.e) either it is template field or bound field and assigning values to that particular field.
You can find a detailed guide for configuring manual load on demand at:
http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=WebHierarchicalDataGrid_Load_On_Demand.html
Feel free to contact me if you have any questions.