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.

Determine if selected and adding columns

Thread ID:

Created:

Updated:

Platform:

Replies:

102156 Jan 4,2012 06:13 PM Jan 9,2012 08:38 AM Windows Forms 1
loading
Tags: GridControl
Kelly Hopwood
Asked On January 4, 2012 06:13 PM

Hi, I am switching out a Windows system DataGridView for your GridControl. I've run into a few little hiccups while trying to translate the already existing code. I have a function that determines if a cell is selected. The old code was simply:

If Me.GroupMembersView.Rows(row).Cells(i).Selected Then
Return True
End If

Is there a simple way to determine if a certain cell is selected with the GridControl?

In another part of the code I am programically adding columns in a for loop:

For i = 0 To Me.mGroupedSpecs.Count - 1
Me.GroupMembersView.Columns.Add("Task" + Me.mGroupedSpecs.ElementAt(i).SchTask.ID.ToString, "Task " + Me.mGroupedSpecs.ElementAt(i).SchTask.ID.ToString)
Me.GroupMembersView.Columns(i + FrozenCount).Width = 40
Next

I can't seem to figure out how to translate this for the GridControl.

I'd appreciate any help that you could give me! Thanks!

-Kelly


Mercy C [Syncfusion]
Replied On January 9, 2012 08:38 AM

Hi Kelly,

Thanks for your interest in Syncfusion products.

We couldn’t get your issue by the lines of code you gave. Could you please give us a simple sample that has DataGridView which would help us to understand better.

Please let us know if you have any concerns.

Regards,
Mercy.C



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.

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.

;