ali hassan
2015-08-18T17:44:55Z
The header in my scenario is dynamic header that is get from database customer table the list of customers, so the above mentioned way is best for the fixed and per-defined header but not for the dynamic header.

If there is any way kindly let me know..


Thanks for your reply and suggestions.
RaymondC
2015-08-18T22:02:01Z
The grid supports custom drawing in a cell but I'm not sure if you can custom draw in a header.
Igor/10Tec
2015-08-19T06:02:06Z
What about the ColHeaderBackColor property?
ali hassan
2015-08-19T12:23:51Z
Thanks you very much it works.

Now the problem is Frozen Rows just like columns Frozen, as you already mentioned in the earlier post, This functionality is not exist in current version.


It is possible to do Frozen Rows by using any programing technique by using existing methods,Properties and events to frozen the Rows?



Thanks.. -:)
Igor/10Tec
2015-08-19T13:22:34Z
No, you can only do that in a separate grid that emulates your frozen rows.
ali hassan
2015-08-24T12:43:24Z

We want to get that Row and that Column number where user can click?

How i can get the Column/Cell Number when i am click on the cell with mouse button?

Actually we want to change the background colors of lift side cells and the top cells of that selected cell.


Thanks.

ali hassan
2015-08-24T13:35:37Z
I am done by using below description.

I am using "MouseUp" event and get the Row and Column number that user selected and then using "For Loop" to set the the background color of each cell. Set Background color to all the left cells of that Row and also all "Top" cells of that selected cell.


Kindly guide me, i am doing right? Or any other best event or solution for my question.


Kindly let me know how to change the default selection blue color? now when i am dome background color to "Red" but the selected cell is shows the blue color.
Igor/10Tec
2015-08-25T07:42:28Z
Looking at your brief description, it's a correct solution.

The color of the selected cell is controlled using the HighlightBackColor, HighlightForeColor, HighlightBackColorNoFocus and HighlightForeColorNoFocus properties.
ali hassan
2015-08-26T13:22:27Z

Thanks for your reply. We really appreciate the help, you are providing us.

Thanks..
ali hassan
2015-08-26T14:48:31Z
It is possible to disable the click/selected cells for the frozen columns?


if user click on frozen columns click is not disable. not select column when user click on frozen area?



How to stop/remove the igrid sorting from header. we want to stop sorting?
ali hassan
2015-08-26T17:09:08Z
How we edit the cell when we set the "Editable" property "False" kindly let us know how to edit the cell value when grid "Editable" set false?

We want to edit the whole column cells. we need this after the column is editable, but the whole grid is Editable "False" on load and then user select the cell and then we need that column is editable "True" for that time and then edit the column values.
Igor/10Tec
2015-08-27T08:38:02Z
To disable cell selection, set their CellSelectable property to False.

*****

To allow editing of the cells in just one column, use the RequestEdit event. The following example demonstrates how to enable editing only in the 2nd column:

Private Sub iGrid1_RequestEdit(ByVal lRow As Long, ByVal lCol As Long, _
      ByVal lCharCode As Long, bCancel As Boolean, sText As String, _
      lMaxLength As Long, eTextEditOpt As ETextEditFlags)

   If lCol <> 2 Then
      bCancel = True
   End If
End Sub

Note that you do not need to set the Editable property to False in this solution.
ali hassan
2015-08-27T12:01:09Z
But we need grid editable false when loaded then user lock that column they waant to change because the same database used by many users at the same time so thats why we need first noneditable gird then lock the column that user want to change. After the lock column focus the selected column and user change the values.

We want this first gird is loaded as nonditable after the "lock column" that column is editable then user change the values and then save change and we set that column again to noneditable.
Igor/10Tec
2015-08-28T05:26:30Z
You can use the same event handler. Implement a form-level Boolean variable that indicates whether the grid allows editing, let's name it m_bEditingEnabled. Then the event handler will look like this:

Private Sub iGrid1_RequestEdit(ByVal lRow As Long, ByVal lCol As Long, _
      ByVal lCharCode As Long, bCancel As Boolean, sText As String, _
      lMaxLength As Long, eTextEditOpt As ETextEditFlags)

   If (Not m_bEditingEnabled) Or (lCol <> 2) Then
      bCancel = True
   End If
End Sub