Jo Jo
  • Jo Jo
  • Newbie Topic Starter
2015-03-11T08:21:19Z
I purchase the license around half year, and iGrid work prefectly, just few questions would like to ask.

I have few columns in the groupbox area for showing the sub-total.
If I would like to drag these columns to columns[6] for example, is there any properties or function I can use?

I checked the manual and found "CanPlaceTo" and "myCol.move", but I am not so sure the functionality.

Could you please advise? thanks.
Jo Jo attached the following image(s):
Igor/10Tec
2015-03-11T15:37:24Z
We did not understand your question. Do you need to remove some columns from the group box (remove them from grouping) from code, or do you want to limit the column positions in the grid when the user is dragging them outside of the group box?
Jo Jo
  • Jo Jo
  • Newbie Topic Starter
2015-03-16T01:33:53Z
For example, dragging "CAT" (i.e remove from grouping by "CAT") column to the position after "MAY TG QTY", I would like to limit "CAT" column position after dragging, so I am wondering any code I can perform this action.

Maybe My Engish is not very good, but I will explain more clearly. thanks Igor ;P
Igor/10Tec
2015-03-16T07:17:06Z
It seems, the ColHdrDragging event can be used for that. Its e.DoDefault parameter passed by reference can be used to enable/disable the column placement in a new position.

For instance, the code like this will allow you to place the 1st column only into the 5th position:

private void iGrid1_ColHdrDragging(object sender, TenTec.Windows.iGridLib.iGColHdrEndDragEventArgs e)
{
  if(e.ColIndex == 0 && e.NewOrder != 4)
  {
    e.DoDefault = false;
  }
}
Jo Jo
  • Jo Jo
  • Newbie Topic Starter
2015-03-23T02:59:05Z
Originally Posted by: Igor/10Tec 

It seems, the ColHdrDragging event can be used for that. Its e.DoDefault parameter passed by reference can be used to enable/disable the column placement in a new position.

For instance, the code like this will allow you to place the 1st column only into the 5th position:

private void iGrid1_ColHdrDragging(object sender, TenTec.Windows.iGridLib.iGColHdrEndDragEventArgs e)
{
  if(e.ColIndex == 0 && e.NewOrder != 4)
  {
    e.DoDefault = false;
  }
}



Sorry for late reply, after few time trials it works great, thanks 😛