Avatar of Peter Nordberg
Peter Nordberg
Flag for Sweden

asked on 

Get hold of public property in usercontrol from within grid

Hi,

I have a usercontrol with the name WorkflowDotList.ascx. In that usercontrol I have a public property with the name CarID.

Now I have placed the usercontrol inside of a grid template column like this:

<telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <uc1:WorkFlowDotsList runat="server" ID="WorkFlowDotsList"  />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

Open in new window


Now I need to get hold of the public property of the usercontrol in the Itemdatabound event of the grid, so I can assign the carID for that particular item row.

How can I get hold of the carID property of the usercontrol and assign av value to it in the itemdatabound event?

Thanks for help!

Peter
ASP.NETVisual Basic.NET

Avatar of undefined
Last Comment
Obadiah Christopher

8/22/2022 - Mon