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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set cursor position to the new record row within the GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

13412 Apr 28,2004 07:54 AM UTC Apr 29,2004 08:10 AM UTC WinForms 2
loading
Tags: GridControl
Vincent Loy Chee Hoon
Asked On April 28, 2004 07:54 AM UTC

I''m new to GridDataBoundGrid and facing this problem of manipulating the cursor position within the GridDataboundGrid. How can I set the cursor position to the new record row (usually the last row) by using codes (design time) rather than using mouse cursor to click on the new record row of the GridDataBoundGrid during runtime. I would be very grateful if you can show me the full code to do it...thanks

Administrator [Syncfusion]
Replied On 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

Vincent Loy Chee Hoon
Replied On 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 > >

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.

Warning Icon 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.Close Icon

;