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.

help with grid!

Thread ID:

Created:

Updated:

Platform:

Replies:

81117 May 13,2009 10:53 AM May 15,2009 08:41 AM ASP.NET Web Forms (Classic) 3
loading
Tags: GridGroupingControl
Marcel Brasil Tenorio
Asked On May 13, 2009 10:53 AM

Hello! I have a gridGroupControl that generates several columns, but at run time by clicking button I needed to insert a new row below where the User clicked, please help me!

Rekha P [Syncfusion]
Replied On May 14, 2009 07:21 AM

Hi Marcel,

Thank you for your interest in Syncfusion Products.

You can add a new row to GridGroupingControl by enabling AllowNew property and invoking AddNew method which lets you to enter into edit mode to insert a new record. Please refer the code snippet below to achieve this through button click event.

protected void Button1_Click(object sender, EventArgs e)
{
//Enable the AllowNew property.
this.GridGroupingControl1.TableDescriptor.AllowNew = true;
//Invoke the AddNew() to enter into edit mode.
this.GridGroupingControl1.Table.AddNew();
}

Please refer a simple sample to illustrate this.
http://files.syncfusion.com/support/GGC.Web/7.2.0.20/F81117/main.htm

Please let me know if this helps you.

Thanks,
Rekha

Marcel Brasil Tenorio
Replied On May 14, 2009 10:36 AM

ok! now I appreciate just as I had already achieve. I want to insert is below where I will then click a button in each line .. see the picture!



grid_feb4bce.JPG

Rekha P [Syncfusion]
Replied On May 15, 2009 08:41 AM

Hi Marcel,

We regret to let you know that it is not possible to add a new record other than the first row dynamically. Since for adding a new value, always the first index (Index 0) will be referred into edit mode to enter the new values and this is the default behaviour of Essential Grid.

Please let me know if you have any concerns.

Thanks,
Rekha

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.

;