Hi all,
In my radgrid there are 5 columns,and each column is having a link button in it. I need to check whether the name in column 3 is blank or not. And if the name field in the column 3 is blank I need to disable the link buttons in 4th and 5th columns. Below added my code and I am getting error with this. Please help me.
protected void GridSample_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
foreach (GridDataItem item in GridSample.Items) {
TableCell field_name = (TableCell)item("strName");
if (field_name.Text == null) {
Disable link buttons in columns 4 and 5.
}
}
}
Thanks in advance.
In my radgrid there are 5 columns,and each column is having a link button in it. I need to check whether the name in column 3 is blank or not. And if the name field in the column 3 is blank I need to disable the link buttons in 4th and 5th columns. Below added my code and I am getting error with this. Please help me.
protected void GridSample_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
foreach (GridDataItem item in GridSample.Items) {
TableCell field_name = (TableCell)item("strName");
if (field_name.Text == null) {
Disable link buttons in columns 4 and 5.
}
}
}
Thanks in advance.