Thank you for writing.
In regards to your first question. There are several ways to make the different rows distinguishable. You can enable the alternating row colors by setting the RadGridView EnableAlternatingRowColor to true. You can also use the CellFormatting event to set the borders of the cells. Consider the following code snippet which draws only the top and bottom borders of the cells:
sender, CellFormattingEventArgs e)
e.CellElement.BorderBoxStyle = BorderBoxStyle.FourBorders;
e.CellElement.BorderLeftWidth = 0;
e.CellElement.BorderRightWidth = 0;
e.CellElement.BorderTopColor = Color.LightBlue;
e.CellElement.BorderBottomColor = Color.LightBlue;
If this does not cover your requirements, I would kindly ask you to provide some more details on what you want tot achieve. If you can attach a screen shot or a drawing of what you want you will help me better understand your goal.
As to your second question, you can set the text alignment directly to the RadGridView
columns. Here is a code snippet which demonstrates how to set it for all grid columns:
column.TextAlignment = ContentAlignment.MiddleCenter;
I hope this will be useful for you. If you have further questions, I would be glad to help.
the Telerik team
Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.