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

Determine if selected and adding columns

Thread ID:





102156 Jan 4,2012 11:13 PM UTC Jan 9,2012 01:38 PM UTC WinForms 1
Tags: GridControl
Kelly Hopwood
Asked On January 4, 2012 11:13 PM UTC

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

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!


Mercy C [Syncfusion]
Replied On January 9, 2012 01:38 PM UTC

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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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