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

Multi-line text in row and another strange behaviour

1 Answer 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 12 Nov 2008, 08:40 AM
Hi,

I've seen that since the Q1 2008 Release, RadGridView supports multi-lined text in rows. On my side it displays the line break correctly but the row does not scale to fit the text. With that the text on the second row in my Cell is cut off by the next row.

Another problem:
I bind the GridView by giving it a DataTable as DataSource. There is one column in my DataTable that gets shown in the grid but not its vlaues, wich are there in the DataTable. All other columns from the DataTable are displayed properly. Is it somehow not engough to do grid.DataSource = DataTable? Wenn I manualy change a value of this column inside the GridView while debugging it works fine.

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 14 Nov 2008, 11:07 AM
Hi Tommy,

Thank you for contacting us.

I can suggest that you manually set the row height to avoid the first issue:

foreach (GridViewRowInfo row in this.radGridView1.Rows) 
    row.Height = 37; 


What type was the column that was not showing the data from your database properly? In general you need to assign the DataTable to your DataSource only. I am happy that you found a work-around in your case.

Do not hesitate to contact me back if you have further questions.
 

All the best,
Nick
the Telerik team

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