i want to let use to select some rows as "Deleted"
to delete these datas form DataBase
how can i let these rows shown as the following
the example is done by using C# default DataGridView
How can be done in RADGRIDIEW ?
1 Answer, 1 is accepted
0
Dinko | Tech Support Engineer
Telerik team
answered on 20 Jan 2026, 12:16 PM
Hello 林 暉凱,
Thank you for reaching out to us.
What you are searching for is a strikethrough line. The control does not expose a specific property to show such a line. However, you can apply it using the Font property of the cell. Each data cell can be further customized through the CellFormatting event of the RadGridView.
Font font;
privatevoidRadGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (font == null)
{
font = new Font(e.CellElement.Font, FontStyle.Strikeout);
}
var dataItem = e.CellElement.RowInfo.DataBoundItem as Person;
// check if this cell needs to have a strikethrough line
e.CellElement.Font = font;
}
Now, what's left is to add the logic on your side that the user will use to mark rows for deletion.
Regards,
Dinko | Tech Support Engineer
Progress Telerik