AD
Administrator
Syncfusion Team
April 28, 2004 09:41 AM UTC
Hi Vincent,
open the DataBound\RecordNavDataBoundGrid sample in designer and add a button on the form.
Then add a event handler as follows:
private void button1_Click(object sender, System.EventArgs e)
{
this.gridDataBoundGrid1.CurrentCell.MoveTo(this.gridDataBoundGrid1.Model.RowCount, 1);
this.gridDataBoundGrid1.Focus();
// To also switch the record into edit mode (show pencil on header) call
// this.gridDataBoundGrid1.Binder.AddNew();
}
When you click the button the grid will position the current record onto the AddNew record.
Stefan
VL
Vincent Loy Chee Hoon
April 29, 2004 08:10 AM UTC
hi stefan,
Thanks alot for replying to my question. But I got another question for you, where can I find more detail help regarding each properties and methods created within the GridDataBoundGrid??
Best Regards
Vincent
>Hi Vincent,
>
>open the DataBound\RecordNavDataBoundGrid sample in designer and add a button on the form.
>
>Then add a event handler as follows:
>
>
> private void button1_Click(object sender, System.EventArgs e)
> {
> this.gridDataBoundGrid1.CurrentCell.MoveTo(this.gridDataBoundGrid1.Model.RowCount, 1);
> this.gridDataBoundGrid1.Focus();
> // To also switch the record into edit mode (show pencil on header) call
> // this.gridDataBoundGrid1.Binder.AddNew();
> }
>
>
>When you click the button the grid will position the current record onto the AddNew record.
>
>Stefan
>
>