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

change rowcount

1 Answer 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jhjang
Top achievements
Rank 1
Jhjang asked on 30 Mar 2015, 04:37 AM
Hi

I have made codes to show live data in RadGridView.

So, I set the VirtualMode property to true, and set ColumnCount.

But, I can't set RowCount, because I don't know how many data will be shown.

I set the RowCount to 0. When I received data, I increased RowCount( ex. RowCount++)

I know this code is wrong, because occurred exception.

Please let me know how to show live data in RadGridView.

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 01 Apr 2015, 03:30 PM
Hi Jaeyong,

Thank you for writing.

Although you have already received an answer from me regarding the same question in a support ticket I will post my reply here as well so that the community can benefit from it.

To me it looks that a RadGridView in unbound mode could do the job. Please note that the Virtual Mode of the RadGridView is primarily intended for performance optimization. The rows count needs to be set in the beginning.

I have prepared an example project which is demonstrating how data can be populated in unbound grid. Please refer to this article for more information. Besides my project I am also sending you a gif file showing how the grid looks on my end.

I hope this information helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
Jhjang
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or