6 Answers, 1 is accepted
0

Emanuel Varga
Top achievements
Rank 1
answered on 01 May 2011, 11:09 AM
Hello Tooraj,
Could you please be more specific? I don't really understand what you are looking for..
Best Regards,
Emanuel Varga
Telerik WinForms MVP
Could you please be more specific? I don't really understand what you are looking for..
Best Regards,
Emanuel Varga
Telerik WinForms MVP
0

Tooraj
Top achievements
Rank 1
answered on 02 May 2011, 03:55 AM
Sure,
Suppose I have a child form and a grid is displayed. the user can use color gallery on the ribbon to format the cells as he/she want. also this formatting must be saved (Maybe using SaveLayout method).
Formatting also includes Font and FontStyles.
Is it clear enough?
Thank you again Emanuel, You really help me.
Suppose I have a child form and a grid is displayed. the user can use color gallery on the ribbon to format the cells as he/she want. also this formatting must be saved (Maybe using SaveLayout method).
Formatting also includes Font and FontStyles.
Is it clear enough?
Thank you again Emanuel, You really help me.
0

Emanuel Varga
Top achievements
Rank 1
answered on 02 May 2011, 06:51 AM
Hello again,
Ok, i understood the part about font and fontstyle, but what about colors, what kind of formatting? conditional formatting? background colors? header background colors? fore colors?
Best Regards,
Emanuel Varga
Telerik WinForms MVP
Ok, i understood the part about font and fontstyle, but what about colors, what kind of formatting? conditional formatting? background colors? header background colors? fore colors?
Best Regards,
Emanuel Varga
Telerik WinForms MVP
0

Tooraj
Top achievements
Rank 1
answered on 02 May 2011, 10:06 AM
Hi Emanuel,
Just backgoround and forecolor of cells.
Just backgoround and forecolor of cells.
0

Emanuel Varga
Top achievements
Rank 1
answered on 02 May 2011, 10:39 AM
Hello again,
Ok... that sounds very simple to do, just take a look at the examples application: RibbonBar / First Look on how to create the color / color chooser element - This should be enough to create the ribbon components necessary for this operation.
After that you will have to register to the grid's CellFormatting / RowFormatting event (I believe that there are a lot of examples on the forums on how to use these) and set the appropriate colors based on the users selection.
One other thing, for the grid to apply the selection you should add these two lines:
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
Ok... that sounds very simple to do, just take a look at the examples application: RibbonBar / First Look on how to create the color / color chooser element - This should be enough to create the ribbon components necessary for this operation.
After that you will have to register to the grid's CellFormatting / RowFormatting event (I believe that there are a lot of examples on the forums on how to use these) and set the appropriate colors based on the users selection.
One other thing, for the grid to apply the selection you should add these two lines:
radGridView.BeginUpdate();
// maybe do some other things
radGridView.EndUpdate();
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
0
Hello Tooraj,
Thank you for writing.
Ivan Petrov
the Telerik team
Thank you for writing.
What I understand from your requirements is that you want something like the MS Excel formatting. However, this is not supported by RadGridView - you can format the cells colors, but you cannot save the formatting as there is no such serialization provided by RadGridView.
I will be happy to answer any further questions should you have such.
Ivan Petrov
the Telerik team