New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.protected override void OnButtonClicked(int rowIndex, int colIndex, int button) { this.Grid.CurrentCell.MoveTo(rowIndex, colIndex); //Console.WriteLine("clicked ({0},{1})", rowIndex, colIndex); this.ddForm.SetValuesFromString(this.Grid.Model[rowIndex, colIndex].Text); Rectangle rect = this.Grid.RangeInfoToRectangle(GridRangeInfo.Cell(rowIndex, colIndex)); this.ddForm.Location = this.Grid.PointToScreen(new Point(rect.Left, rect.Bottom)); if(this.ddForm.ShowDialog() == DialogResult.OK) { this.Grid.Model[rowIndex, colIndex].Text = this.ddForm.GetValuesToString(); } //base.OnButtonClicked (rowIndex, colIndex, button); }You can use the same event to set whatever controls you have on your form readonly if needed. To set the gridGroupingControl readonly, you can use the gridGroupingControl1.TableDescriptor.AllowEdit property.
GridCurrentCell cc = parentgrid.CurrentCell;
GridStyleInfo style = parentgrid[cc.RowIndex, cc.ColIndex];
>GridCurrentCell cc = parentgrid.CurrentCell;
>GridStyleInfo style = parentgrid[cc.RowIndex, cc.ColIndex];
>
>
>