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_ItemCommand(
object
sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if
(e.CommandName == "CommandName")
string
select =
"SELECT TOP 1 EmployeeID FROM Employees ORDER BY EmployeeID DESC"
;
SqlCommand.CommandText = select;
SqlCommand.Connection = conn;
SqlDataAdapter da =
new
SqlDataAdapter(SqlCommand);
dt =
DataTable();
da.Fill(dt);
int
value = Convert.ToInt16(dt.Rows[0][
"EmployeeID"
].ToString());
foreach
(GridDataItem item
in
RadGrid1.Items)
ID = Convert.ToInt16(item[
].Text);
(ID == value)
item.Selected =
true
}