To,
The problem is cannot make edit button disable certain row on match condition

The example i use. that make all edit button hidden when one condition is match

Anyone have idea to disable Radgrid edit on certain row? Thanks advance.
From louisth
The problem is cannot make edit button disable certain row on match condition
The example i use. that make all edit button hidden when one condition is match
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
GridButtonColumn gbtnCol = item.OwnerTableView.Columns.FindByUniqueName(
"column"
)
as
GridButtonColumn;
gbtnCol.Text =
"Resume"
;
gbtnCol.DataTextFormatString =
"Resume"
;
GridEditCommandColumn gbtnCol2 = item.OwnerTableView.Columns.FindByUniqueName(
"EditCommandColumn"
)
as
GridEditCommandColumn;
Label txtProcessStatus = e.Item.FindControl(
"ProcessStatusLabel"
)
as
Label;
//ProcessStatusTextBox gbtnCol3 = item.OwnerTableView.Columns.FindByUniqueName("ProcessStatus") as ProcessStatusTextBox;
if
(gbtnCol2 !=
null
)
if
(txtProcessStatus.Text !=
"98"
)
{
gbtnCol2.Visible =
false
;
gbtnCol.Visible =
false
;
txtProcessStatus.Text =
"11"
;
}
}
}
Anyone have idea to disable Radgrid edit on certain row? Thanks advance.
From louisth