Edit this page

GridViewRatingColumn

This article describes how setup and use GridViewRatingColumn in RadGridView.

GridViewRatingColumn allows you to represent and edit numeric value as rating elements. Each cell in GridViewRatingColumn contains permanent editor from type RadRatingElement.

gridview-columns-gridviewratingcolumn 001

The following code snippet demonstrates how to create and add GridViewRatingColumn to RadGridView and also add some sample data in it:

GridViewRatingColumn column = new GridViewRatingColumn("Rating Column");
radGridView1.Columns.Add(column);
radGridView1.Rows.Add(20);
radGridView1.Rows.Add(35);
radGridView1.Rows.Add(70);
radGridView1.Rows.Add(3);
radGridView1.Rows.Add(18);

Dim column As New GridViewRatingColumn("Rating Column")
radGridView1.Columns.Add(column)
radGridView1.Rows.Add(20)
radGridView1.Rows.Add(35)
radGridView1.Rows.Add(70)
radGridView1.Rows.Add(3)
radGridView1.Rows.Add(18)

Properties

GridViewRatingColumn exposes properties that allow the user to control the behavior of the embedded RadRatingElements. The following list represents the most important of them:

  • Minimum: defines the minimum value that each cell in the column can hold.

  • Maximum: defines the maximum value that each cell in the column can hold.

  • SelectionMode: defines the selection mode of the cells. There are three available modes: Precise, FullItem and HalfItem.

  • Direction: this property defines the direction of the fill.

  • ReadOnly: when this property has value true the users are not able to change the values of the cells into the column by mouse or keyboard.

See Also