I'm using VS2005, .net 2.0.
My grid is declared as such:
//
// grdData
//
this.grdData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
//
//
//
this.grdData.Columns.Items.AddRange(new NineRays.Windows.Forms.Grids.Column[] {
this.colImage,
this.colDescription,
this.colDetail,
this.colEdit});
this.grdData.Columns.Options = ((NineRays.Windows.Forms.Grids.ColumnsOptions)(((((NineRays.Windows.Forms.Grids.ColumnsOptions.Clickable | NineRays.Windows.Forms.Grids.ColumnsOptions.ShowTooltips)
| NineRays.Windows.Forms.Grids.ColumnsOptions.ShowSortOrderMark)
| NineRays.Windows.Forms.Grids.ColumnsOptions.ChangeSortOrderOnClick)
| NineRays.Windows.Forms.Grids.ColumnsOptions.FitToWidth)));
this.grdData.ForeColor = System.Drawing.SystemColors.ControlText;
this.grdData.Location = new System.Drawing.Point(6, 20);
this.grdData.Name = \"grdData\";
this.grdData.Opacity = 1;
this.grdData.SelectedUnfocusedBackColor = System.Drawing.SystemColors.Window;
this.grdData.SelectedUnfocusedForeColor = System.Drawing.SystemColors.ControlText;
this.grdData.Size = new System.Drawing.Size(338, 327);
this.grdData.TabIndex = 0;
//
// colImage
//
this.colImage.ReadOnly = true;
this.colImage.ShowTooltips = false;
this.colImage.Width = 19;
//
// colDescription
//
this.colDescription.ReadOnly = true;
this.colDescription.Width = 96;
//
// colDetail
//
this.colDetail.AllowSorting = false;
this.colDetail.FitMode = NineRays.Windows.Forms.Grids.ColumnFitMode.Spring;
this.colDetail.ReadOnly = true;
this.colDetail.Width = 197;
//
// colEdit
//
this.colEdit.ButtonCaption = \"...\";
this.colEdit.CellBackColor = System.Drawing.SystemColors.Control;
this.colEdit.CellValueAsButtonCaption = false;
this.colEdit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.colEdit.Width = 20;
this.colEdit.CellValueAsButtonCaption = true;
this.colEdit.ButtonClick += new NineRays.Windows.Forms.Grids.ButtonColumnClickHandler(this.colEdit_ButtonClick);