Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
WebHerichical Template Column Value
posted

Hi .

i m using webherirchical grid. i have add tempalte column in grid and plce button , i want to retrive specific column value in temlate button clikc event ,

can anyone pls tell me how t o retrive

 

regards

Rajan

  • 5739
    posted

    Hi,

    Here's an example of a templated column in the grid: Here it is getting the customerid field, you can get any column you want.

    <ig:TemplateDataField Key="SelectButton">
         <ItemTemplate>
             <asp:LinkButton ID="SelectLink" CommandName="SelectedClick" CommandArgument='<%# DataBinder.Eval(CType(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "CustomerID") %>' runat="server" >Select</asp:LinkButton>
         </ItemTemplate>
    </ig:TemplateDataField>

    Ed

  • 5739
    Suggested Answer
    posted

    Hi,

    You need to handle the ItemCommand event of the grid.  Look at the following post for detailed information: http://community.infragistics.com/forums/p/32581/181794.aspx#181794

    That's an old post and the bug he refers to is not a problem anymore.

    Ed