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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Empty lines in a GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

56382 Feb 14,2007 11:17 AM UTC Feb 15,2007 11:50 PM UTC WinForms 3
loading
Tags: GridControl
Ryan Hardoon
Asked On February 14, 2007 11:17 AM UTC

Hi
Is there any way I can design a GDBG with a fixed number of rows in advance even if I dont have any data.? For example I want the grid to always have at least 10 rows even if I do not have 10 rows of data in my DataSet.
thanks.

Administrator [Syncfusion]
Replied On February 14, 2007 05:54 PM UTC

Hi Ryan,

One way you can do this by handling the Model.QueryRowCount event of the grid and set the e.RowIndex to new row index. Here is a code snippet.

this.gridDataBoundGrid1.Model.QueryRowCount +=new GridRowColCountEventHandler(Model_QueryRowCount);

private void Model_QueryRowCount(object sender, GridRowColCountEventArgs e)
{
if( e.Count < 10 )
{
e.Count = 10;
e.Handled = true;
}
}

Best regards,
Haneef

Administrator [Syncfusion]
Replied On February 15, 2007 02:05 PM UTC

Hi Haneef
Thanks. and what about a DataGroupingGrid ?
is there a more elegant way for that without code i.e in the designer.
thanks.


>Hi Ryan,

One way you can do this by handling the Model.QueryRowCount event of the grid and set the e.RowIndex to new row index. Here is a code snippet.

this.gridDataBoundGrid1.Model.QueryRowCount +=new GridRowColCountEventHandler(Model_QueryRowCount);

private void Model_QueryRowCount(object sender, GridRowColCountEventArgs e)
{
if( e.Count < 10 )
{
e.Count = 10;
e.Handled = true;
}
}

Best regards,
Haneef

Administrator [Syncfusion]
Replied On February 15, 2007 11:50 PM UTC

Hi,

The grouping grid currently has no support for this. Sorry for the inconvenience, but there is no easy way to get this working.

Best Regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;