---
title: "How to add radcombobox to cell in a table row cell"  
description: "How to add radcombobox to cell in a table row cell"  
author: "Anonymous User"  
published: 2014-08-31  
updated: 2014-09-01  
canonical: https://www.mindstick.com/forum/2212/how-to-add-radcombobox-to-cell-in-a-table-row-cell  
category: "asp.net"  
tags: ["asp.net", ".net", "c#", "radcombobox", "add radcombobox to cell in a table row cell"]  
reading_time: 1 minute  

---

# How to add radcombobox to cell in a table row cell

I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to add a RadComboBox to a [table](https://www.mindstick.com/articles/43918/how-to-design-table-using-bootstrap) row Cell. I cannot use table.row.cells.add(radcombobox) as it expects a cell object. The table is programatically created .

protected override void Page_Init(object sender, EventArgs e) {

base.Page_Init(sender, e);

ConfigureTableColumns(DataContext, OperatingConditionsTable, node, segments);

ConfigureTableRows(DataContext, OperatingConditionsTable, node, segments, inputs);

}

[private](https://www.mindstick.com/blog/11097/java-access-modifiers-the-public-and-the-private-modifiers) void ConfigureTableRows(CtalaDataContext [context](https://www.mindstick.com/forum/23245/what-is-context-in-android), Table table, Ctala.Entity.TreeNode reviewNode

IEnumerable<Ctala.Entity.TreeNode> segments, ILookup<[string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp), OperatingConditionInput> inputsGroupedByCategory) {

[foreach](https://www.mindstick.com/forum/33870/how-parallel-foreach-works-internally) (var category in inputsGroupedByCategory) {

foreach (var [input](https://www.mindstick.com/forum/159209/how-can-i-read-convert-an-input-stream-into-a-string-in-java) in category) {

var row = new TableRow() {

[CssClass](https://www.mindstick.com/forum/12787/how-to-get-access-to-cssclass-property-for-server-element-isn-t-webcontrol-in-asp-dot-net) = (altRow) ? "rgAltRow" : "rgRow"

};

table.Rows.Add(row);

var cell = new TableCell() {

Text = input.Name

};

row.Cells.Add(cell);

var unitCell = new RadComboBox()

{

ID = "[Unit](https://www.mindstick.com/articles/44359/store-your-valuable-items-in-a-mini-storage-unit)",

AllowCustomText = false

};

foreach (var item in input.Unit)

{

unitCell.Items.AddRange(new RadComboBoxItem[] { new RadComboBoxItem(item) });

}

//cell = new TableCell()

//{

// Text = input.Unit

//};

row.Controls.Add(unitCell);}}

## Replies

### Reply by Sumit Kesarwani

Hi Goti, \

To add a RadComboBox to your cell:

RadComboBox comboBox = new RadComboBox

{

ID = "Foo"

}

comboBox.Items.Add(new RadComboBoxItem((0).ToString(), "FirstItem"));

newCell.Controls.Add(comboBox);


---

Original Source: https://www.mindstick.com/forum/2212/how-to-add-radcombobox-to-cell-in-a-table-row-cell

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
