Hi everyone, I have been using S Grid in my app and its been working great. Now I am trying to do something though I havent done before with SGrid, editing the cells. In the new grid I have created I have 2 columns. One column shows the titles/captions and the other is all the cells that I want to editable. I set the grid Editable property to true and I have the following code:
VB Code:
  1. Private Sub DetailsGrid_SelectionChange(ByVal lRow As Long, ByVal lCol As Long)
  2.  
  3.     If lCol = 2 Then
  4.         DetailsGrid.StartEdit(lRow, lCol) = True
  5.     End If
  6.  
  7. End Sub
When I run the project and if I click anywhere on the grid I get the following error: "Assignment to constant not permitted"..
Any Suggestions?? Thanx everyone for the help!