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
<
telerik:RadGrid
ID
=
"RadGrid1"
AutoGenerateColumns
"false"
DataSourceID
"sqlDataSource2"
runat
"server"
onitemdatabound
"RadGrid1_ItemDataBound"
>
MasterTableView
Columns
telerik:GridTemplateColumn
ItemTemplate
asp:TextBox
"TextBox1"
Text='<%#Eval("LastName") %>'></
> // binding textbox in aspx
"TextBox3"
></
</
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
GridDataItem ditem = (GridDataItem)e.Item;
TextBox txtBox = e.Item.FindControl(
)
as
TextBox;
txtBox.Text=(
string
)DataBinder.Eval(e.Item.DataItem,
"FirstName"
).ToString();
// Binding in code behind
}