Note: This article was originally published in 2011. Some steps, commands, or software versions may have changed. Check the current .Net documentation for the latest information.
Prerequisites
Before you begin, make sure you have:
- Visual Studio or .NET CLI installed
- .NET Framework or .NET Core SDK
- Basic C# programming knowledge
If you are looking for a way to programatically hide rows you don’t wish to show from your data source whether by triggering an event or by a condition you can do it. It’s actually pretty simple once you figure out the method exposed for you to use. Below is an example of what I did when I tried to hide a row after a command was invoke on it (like delete, edit or anything custom you come up with):
GridEditableItem editedItem = e.Item as GridEditableItem;
editedItem.Display = false;
Summary
You’ve successfully learned hide a row in telerik’s radgrid. If you run into any issues, double-check the prerequisites and ensure your .Net environment is properly configured.
Related Articles
- How to: Telerik RadGrid loses it’s state of expanded and contracted groups whenever you databind
- From where does ASP.Net tries to load Assembly files?
- How to make DevExpress work on your Sharepoint 2010 Application Page
- Telerik - The base class includes the field {}, but its type {} (Telerik.Web.UI.RadGrid) is not compatible with the type of control (Telerik.Web.UI.RadGrid).