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.

Paste and SaveCellInfo

Thread ID:





16931 Jul 27,2004 03:54 PM Jul 27,2004 04:15 PM Windows Forms 1
Tags: GridControl
Justin Koh
Asked On July 27, 2004 03:54 PM

I am trying to reuse code posted here that implements fill pasting (so that when one string is pasted into a range, it copies to every row). I used some sample code that was posted here. The problem is that I am using a virtual grid, so I am running into the problem that if I do not set the grid.Data.Rowcount properly, I get an index out of range error. Is there a way to tigger the save cellinfo event in a loop? I''ve tried GetViewStyleInfo(iRow, iCol).Text = Value but that does not work to trigger the event.

Administrator [Syncfusion]
Replied On July 27, 2004 04:15 PM

You trigger SaveCellInfo by setting grid[row, col].Text = somevalue. But you do have to check row and col to make sure they exist in your external datasource so your SaveCellInfo handler can properly save the values. If row and col are outside your external data, then you can either try to add rows/cols to your external datasource, or you can just not set the out of range values. Your looping code would have to manage whatever you woul dwant to do in this case.


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.