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"
OnItemCommand
"RadGrid_ItemCommand"
runat
"server"
DataSourceID
"SqlDataSource1"
AutoGenerateColumns
"false"
OnItemDataBound
"gridDevView_ItemDataBound"
>
MasterTableView
CommandItemDisplay
"Top"
TableLayout
"Fixed"
DataKeyNames
"OrderID"
ClientDataKeyNames
PagerStyle
Mode
"NextPrevAndNumeric"
AlwaysVisible
"true"
/>
Columns
telerik:GridBoundColumn
UniqueName
DataField
</
telerik:GridButtonColumn
Text
"Get Value"
CommandName
"GetValue"
protected
void
RadGrid_ItemCommand(
object
source, GridCommandEventArgs e)
{
if
(e.CommandName ==
)
(e.Item
is
GridDataItem)
GridDataItem ditem = (GridDataItem)e.Item;
string
value = ditem[
].Text;
}