1
Vote

KryptonOutlookGrid CellDoubleClick Event has Bug i checked

description

here is my code. i was just trying to read row values or cell value but got error called ReadOnly controls collection

private void OutlookGrid1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
    {
        MessageBox.Show(OutlookGrid1[0, e.RowIndex].Value.ToString());
    }
here i am just adding the images too for error
Image

so just populate OutlookGrid1 first and attach a event handler called CellDoubleClick and try to read value on clicked cell and then you will notice there is problem.

how to read each cell value of a selected rows? please guide me. thanks

file attachments

comments

Cocotteseb wrote Feb 23, 2015 at 10:46 PM

Hi,

There is no problem with double click, I've found where your error comes from. It is related to the design time dll which is not registered on your computer.
You are using the grid in design time without having Krypton Installed.
You have two solutions :
After that, please remove this line this.kryptonHeaderGroup1.Controls.Add(this.kryptonHeaderGroup1.Panel) and rebuild your solution.

Please keep me informed.

tridip_codeplex wrote Feb 26, 2015 at 2:45 PM

the code i download from codeplex there is no dll called ComponentFactory.Krypton.Design.dll. can you please tell me where to find this dll called ComponentFactory.Krypton.Design.dll. give me url. thanks

Cocotteseb wrote Feb 26, 2015 at 7:38 PM

Hi

You're right, please download the current oulookgrid here : https://kryptonoutlookgrid.codeplex.com/SourceControl/changeset/view/38237

These are the latest bits of Krypton OutlookGrid. You find the dlls (and new (undocumented yet) features)
This a version really close to the next official version but there is still one or two things I would like to do before.

tridip_codeplex wrote Feb 27, 2015 at 12:31 PM

as per your suggestion i download the latest one from this url https://kryptonoutlookgrid.codeplex.com/SourceControl/changeset/view/38237

the same bug is still there. so do onething. download the same one at your end and open it in VS2010 and select the grid and double click on celldoubleclick even and just run your apps. i hope then u can see bug is there.

how to read rows value on which user clicked ?

still bug bug & bug there. first check it properly and fix and then revert back. thanks

Cocotteseb wrote Mar 4, 2015 at 10:12 PM

Hi tridip

I'm sorry but I do not agree with you :/
The Celldoubleclick event does not crash itself. (even I completely agree that the project you are building is currently crashing on you computer)

Why ? Simply just take a look on your screenshot it is crashing on the designerfile of your form on the KryptonGroupHeader objet ! No OutlookGrid there !

This line (this.kryptonHeaderGroup1.Controls.Add(this.kryptonHeaderGroup1.Panel)) must not be added in the designer and you must delete it. But unless you made the previous changes I told you before, it will automatically be added again by Visual Studio as soon as you will modify your form in the design time because Design Time dlls are missing for the Krypton Toolkit.
Believe me or not, but I've encounter the same bug on another computer where the Krypton Toolkit was not installed...a great headache.

I'm pretty sure you have something like this :
http://www.telerik.com/support/kb/winforms/details/radcontrols-for-winforms-are-not-loaded-at-design-time

I bet you haven't installed the Krypton Toolkit on your computer so you haven't registered the design time dll of ComponentFactory.Krypton.Toolkit.Design.dll on your GAC.
That's why I have added the design dll on the latest changeset.
But you must register it in the GAC and restart your computer (believe this step is important) and delete this line (this.kryptonHeaderGroup1.Controls.Add(this.kryptonHeaderGroup1.Panel))

Looking to hearing back from you

tridip_codeplex wrote Mar 10, 2015 at 4:12 PM

Hi Coco,

can you please give me link from where i can download this file ComponentFactory.Krypton.Toolkit.Design.dll for registering in GAC

wrote Mar 10, 2015 at 7:31 PM

Cocotteseb wrote Mar 10, 2015 at 7:31 PM

Hi

Go to the changeset mentionned above :
https://kryptonoutlookgrid.codeplex.com/SourceControl/changeset/view/38237

You will find it in the librairies folder.

tridip_codeplex wrote Mar 23, 2015 at 10:05 AM

still get the same error after adding this dll ComponentFactory.Krypton.Design.dll . error comes when i am adding cell double click event with grid other wise programn run fine. it would be better if u take some initiative just running your program downloading from codeplex on a pc where dotnet 4.0 is installed. attach the cell double click event and run then u must see the error for which i posted the image in my first post.