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.
Syncfusion Feedback

GridDataBoundGrid defaults to 1st row selected after DataSource set.

Thread ID:

Created:

Updated:

Platform:

Replies:

94807 Jun 2,2010 04:11 PM UTC Jun 3,2010 07:17 AM UTC Windows Forms 1
loading
Tags: GridControl
Jeff Voigt
Asked On June 2, 2010 04:11 PM UTC

Is there a way I can disable that feature? I don't want any rows to be selected after the DataSource is set.

I know I could set the selections to 0 after the DataSource but I would rather not have the activated cell event fire off (from the DataSource set). That would throw a lot of coders off when we are wrapping this up into another object.

Thanks,
-jv

Nirmal Raja [Syncfusion]
Replied On June 3, 2010 07:17 AM UTC

Hi Jeff,

Thank you for your interest in Syncfusion products.

The selection of the cells can be removed by clearing the Selections of the GridDataBoundGrid, at the same time a current cell can be activated by moving the current cell to the corresponding row index and column index.

Please refer the code below:
gridDataBoundGrid1.Selections.Clear();
gridDataBoundGrid1.CurrentCell.MoveTo(1, 1);


Let me know if you have any queries.

Regards,
Nirmal

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

;