Make a row of RADGRIDVIEW as "Deleted"

1 Answer 24 Views
GridView
Top achievements
Rank 1
Iron
Iron
Iron
asked on 19 Jan 2026, 03:14 AM

i use RADGRIDVIEW  to show datas

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

Sort by
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;
private void RadGridView1_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

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Top achievements
Rank 1
Iron
Iron
Iron
commented on 20 Jan 2026, 02:18 PM

it works 

Thanks a lot ~

Tags
GridView
Asked by
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or