This is a migrated thread and some comments may be shown as answers.

[Solved] Get Radcombobox id inside radAccommodation_DetailTableDataBind

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ashok
Top achievements
Rank 1
Ashok asked on 28 Feb 2013, 07:28 AM
inside radAccommodation_DetailTableDataBind
events get radcombobox id.using findcontrol and bind combobox

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Feb 2013, 07:41 AM
Hi,

You can access the controls in ItemDataBound event as shown below.
C#:
protected void grid_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem && e.Item.OwnerTableView.Name == "Detailtable1")
        {
            GridDataItem item = (GridDataItem)e.Item;
            RadComboBox combo = (RadComboBox)item.FindControl("RadComboBox1");
         }
}

Thanks,
Princy
Tags
Grid
Asked by
Ashok
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or