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

GridView rows don't show text after grouping

3 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nils
Top achievements
Rank 1
Nils asked on 14 Jan 2009, 10:46 AM
Hello,

I've got a form containing two identical databound GridViews. They are bound to two different DataTables. DataTable2 is a clone of DT1 but on Load only DT1 contains some rows. I've also got two buttons which move all selected rows (in GridView1) from DT1 to DT2 and vice versa. Both GridViews should have the same SortBy- and GroupByExpressions. When I don't add the GroupByExpression to GV2 everything works fine but the grid is not grouped. But when I add the Expression and move Rows to DT2 (shown in GV2), the GroupBy-Rows are shown correctly but when I expand them there is no text shown in the added data rows. I can't figure out why that happens.

The GridView contains three columns:
one visible Column containing Text
one hidden column containing Dates (the GridView is sorted by this column)
one hidden column containing enumvalues (in a ComboBox) (the GridView is groupedby this column)

I hope that I could make clear what I'm trying to do. If you have further questions please ask.
I'm using the latest version of the controls in Visual Studio 2008 running on a Vista64 machine.

Any ideas?

Kind regards,
Nils

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 15 Jan 2009, 10:32 AM
Hi Nils,

I was not able to reproduce the issue with tests. How exactly are you moving the rows? You should copy all selected rows and the remove them from the source data table. Could you please send me a sample application that reproduces the issue?

Should you have any additional questions, feel free to ask.

Best wishes,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nils
Top achievements
Rank 1
answered on 15 Jan 2009, 01:56 PM
Hi Jack,

I will support you with a testsolution. In the meantime I figured out that this only happens when I add the GroupByExpression to the GridView when it is bound to a DataSource containing no items. If I add this expression after moving one item to the DataTable to which the GridView is bound the text is shown.

How can I refresh the databinding? When I move the selected items from the left to the right and vice versa sometimes the GridView doesn't show the moved lines immediatly. I need to click around in the application first. You can see this behavior in the test solution too.

Thanks in advance,
Nils
0
Accepted
Jack
Telerik team
answered on 15 Jan 2009, 03:46 PM
Hi Nils,

You can find the answer to this question in your support ticket. Should you have any other questions, feel free to write us.

Greetings,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Nils
Top achievements
Rank 1
Answers by
Jack
Telerik team
Nils
Top achievements
Rank 1
Share this question
or