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.
Unfortunately, activation email could not send to your email. Please try again.

Empty lines in a GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

56382 Feb 14,2007 06:17 AM Feb 15,2007 06:50 PM Windows Forms 3
loading
Tags: GridControl
Ryan Hardoon
Asked On February 14, 2007 06:17 AM

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 12:54 PM

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 09:05 AM

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 06:50 PM

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.

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.

;