Add Row Template

Hello,

I was just wondering if it is possible add a new row using the same edit template I use for existing rows? If so, can this this be accomplished programmatically (i.e. my own custom button)

Thanks,
DVD

3 Replies

DD Dave Daniels October 30, 2007 03:06 PM UTC

I must ask difficult questions. Is there no one who can answer this?


DJ Daniel Jebaraj Syncfusion Team October 30, 2007 09:18 PM UTC

Hi DVD,

Sorry for the delay. We are working on this and will post an update by tomorrow.

Thank you for your patience.

Best regards,
Daniel

>I must ask difficult questions. Is there no one who can answer this?



MW Melba Winshia Syncfusion Team October 31, 2007 04:20 AM UTC

Hi DVD,

Thank you for your patience.

Yes. You can add a new row using the same edit template that you are using in the existing rows in your own custom button.

[C#]

protected void Button1_Click(object sender, EventArgs e)
{

this.GridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = true;
Syncfusion.Grouping.Record record = GridGroupingControl1.Table.AddNewRecord;
if (record != null)
{
record.BeginEdit();

}

}

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Grid.Web/5.2.0.25/693449/main.htm

Please try this and let me know if this helps.

Thanks,
Melba


Loader.
Up arrow icon