Thank you for contacting Telerik Support.
As it was mentioned below by Richard, Q3-2010 release has a breaking change in the Rows
collection of the RadGridView
now contains all bound/unbound rows; The filtered, grouped and sorted rows can be accessed through RadGridView
). The previous behaviour was that RadGridView
both contained only the filtered, grouped, and sorted rows. The actual full data collection was held in the DataSource
In your case, as you manually add an additional column to your grid run time, you can not populate with data all column cells using RadGridView
, if you have directly applied filter to the grid. The filtered rows remain empty for this column. It is appropriate to subscribe for the CellFormatting
event and there to populate with data the manually added column cells. Thus when the filter is removed all new visual cells should be filled.
My example contains a RadGridView
(version 2010.2.10.914) which DataSource
is the standard Employees
table from NWind.mdb. I have also added a FilterDescriptor
in order to reduce the initial rows number loaded in the grid:
grid.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
grid.DataSource = bindingSource1;
GridViewTextBoxColumn textBoxColumn =
FilterDescriptor filter =
filter.Operator = FilterOperator.Contains;
grid.CellFormatting += grid_CellFormatting;
sender, EventArgs e)
sender, CellFormattingEventArgs e)
index = -1;
, index + 1);
The manually added TextColumn
is filled for each row with the item index in the DataSource collection. Please, find the attached pictute for more details.
I hope this information helps. Should you have further questions, I would be glad to help.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>