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

bug with strikeout and sort

3 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Louis
Top achievements
Rank 1
Louis asked on 03 Oct 2007, 02:45 PM
When i delete a row from the grid i just put the font strikeout so that user can still see what rows have been deleted.

When i sort column the rows that appears strikeout are not the one deleted but the one corresponding to the index?

Can this be fixed soon as it is sort :P of a stopper !

thanks

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 04 Oct 2007, 04:18 PM
Hello Louis ,

You can do that in the RowFormatting event or through theme. You must set the GridRowElement's Font property when your condition occurs and reset it when the condition is not true. See the code below:

this.radGridView1.RowFormatting += new RowFormattingEventHandler(radGridView1_RowFormatting); 
Font strikeoutFont = new Font(SystemFonts.DialogFont, FontStyle.Strikeout); 
 
void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e) 
    if (e.RowElement.RowInfo.Cells.Count > 0 && (string)e.RowElement.RowInfo.Cells[0].Value == "3"
        e.RowElement.Font = strikeoutFont; 
    else 
        e.RowElement.Font = SystemFonts.DialogFont; 
 

We will be glad to help you further.


Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Louis
Top achievements
Rank 1
answered on 05 Oct 2007, 05:36 PM
ok thanks it work.

But please release a documentation with your next build. Its inconcevable to pay a suite of control this price and not be able to use it RAD a way!

Keep up the good work
mateo

0
Nikolay Dobrev
Telerik team
answered on 08 Oct 2007, 02:05 PM
Hi Mateo,

We're constantly improving the WinForms documentation. I must admit that we still have not reached the level of the ASP.NET help but we are actively working on that. All your comments and notes are taken into consideration. I can't reveal all details, but I can tell you that you can expect a pleasant surprise for Q3 release of WinForms documentation.

Regards,
Giles
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Louis
Top achievements
Rank 1
Answers by
Jack
Telerik team
Louis
Top achievements
Rank 1
Nikolay Dobrev
Telerik team
Share this question
or