Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
GridDataItem data = (GridDataItem)e.Item;
string
id = data[
"Column1"
].Text;
data[
"type"
].Text =
.Empty;
switch
(id)
case
"value1"
:
RadComboBox combo =
new
RadComboBox();
combo.DataSourceID =
"SqlDataSource1"
;
combo.DataTextField =
"ID"
combo.DataValueField =
combo.ID =
"Radcombobox1"
].Controls.Add(combo);
break
"value2"
TextBox txtbox =
TextBox();
txtbox.ID =
"TextBox1"
].Controls.Add(txtbox);
}