This is a migrated thread and some comments may be shown as answers.

How to remove default column filters when grid is in Edit mode?..

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 18 Mar 2011, 11:39 AM
hey there

How can i remove the grid default filters when grid is in Edit mode??

Thanks
Amit

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 18 Mar 2011, 11:54 AM
Hello Amit,

Try the following code snippet to achieve your scenario.
C#:
 protected void grdEmail_ItemDataBound(object sender, GridItemEventArgs e)
  {
   if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
     {
       GridFilteringItem filteringItem = (GridFilteringItem)grdEmail.MasterTableView.GetItems(GridItemType.FilteringItem)[0];
       filteringItem.Visible = false;
     }
  }

Thanks,
Shinu.
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or