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.

GridDataControl + Wpf

Thread ID:

Created:

Updated:

Platform:

Replies:

99164 May 3,2011 04:04 PM May 4,2011 08:19 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Jose Colmenarez
Asked On May 3, 2011 04:04 PM

Hi I have a grid connected to a collection when the collection has no element of the grid does not display the column headers, also shows the row for data entry

Thanks for the help



Manikandan [Syncfusion]
Replied On May 4, 2011 08:19 AM

Hi Jose,

Thank you for using Syncfusion products.

We have checked with your requirement and found that you are trying to hide the Column Headers and AddNewRow row when the collection is empty. You can achieve your requirement by setting the Header Row height to zero and ShowAddNewRow to false as shown in the following code snippet :

Code Snippet[C#]

this.dataGrid.ShowAddNewRow = false;

this.dataGrid.ModelLoaded += new EventHandler(dataGrid_ModelLoaded);

void dataGrid_ModelLoaded(object sender, EventArgs e)
{
if (collec.Count == 0)
{
//hiding the column headers
this.dataGrid.Model.RowHeights[0] = 0d;
}
}

Regards,
Manikandan



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.

;