We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Setting rowcount = max in Grid control

Hi,

Can you please let me know how can I set the rowcount and colcount to the max in a grid control?

thanks
viv

3 Replies

HA haneefm Syncfusion Team June 25, 2007 03:19 PM UTC

Hi Vivek,

Have you tried setting:

[c#]
grid.RowCount = MaxRowCount;
grid.ColCount = MaxColCount;
grid.ResetVolatileData();

to see if this helps.

Best regards,
Haneef


VV Vivek Vashisht July 10, 2007 11:59 AM UTC

Haneef,

unfotunately, your solutino did not help. Pls provide some other solution to set the rowcount and col count to max.

like by default the grid control shows 10 rows, i want maximum rows to be displayed.

vivek

>Hi Vivek,

Have you tried setting:

[c#]
grid.RowCount = MaxRowCount;
grid.ColCount = MaxColCount;
grid.ResetVolatileData();

to see if this helps.

Best regards,
Haneef


HA haneefm Syncfusion Team July 10, 2007 03:19 PM UTC

Hi Vivek,

If you want to change the rowcount, change in directly in the GridData object. This will help you to resolve the issue.

this.gridControl1.Model.Data.RowCount = 100;
this.gridControl1.Model.Data.ColCount = 30;
this.gridControl1.ResetVolatileData();
this.gridControl1.UpdateScrollBars();
this.gridControl1.Refresh();

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon