protected
void
RadGrid1_ItemCommand(
object
sender, GridCommandEventArgs e)
{
if
(e.CommandName ==
"YourCommandName"
)
{
// For Normal mode
GridDataItem item = e.Item
as
GridDataItem;
TextBox TextBox1 = item.FindControl(
"TextBox1"
)
as
TextBox;
// Access your TextBox Here
// For Edit mode
GridEditableItem eitem = e.Item
as
GridEditableItem
;
TextBox TextBox2 = eitem.FindControl(
"TextBox2"
)
as
TextBox;
// From Item Template
TextBox TextBox3 = eitem[
"ColumnUniqueName"
].Controls[0]
as
TextBox;
// From Bound Column
// Access your TextBox Here
}
}
Hiç yorum yok:
Yorum Gönder