Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
8598 | Nov 13,2003 03:11 PM UTC | Nov 13,2003 11:11 PM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
//in formload, hide the addnew row this.gridDataBoundGrid1.Model.HideRows[this.gridDataBoundGrid1.Model.RowCount] = true; private void button1_Click(object sender, EventArgs e) { this.gridDataBoundGrid1.Focus(); this.gridDataBoundGrid1.Model.HideRows[this.gridDataBoundGrid1.Model.RowCount] = false; this.gridDataBoundGrid1.CurrentCell.MoveTo( this.gridDataBoundGrid1.Model.RowCount, 1, GridSetCurrentCellOptions.SetFocus); } private void gridDataBoundGrid1_CurrentCellStartEditing(object sender, CancelEventArgs e) { this.gridDataBoundGrid1.Model.HideRows[this.gridDataBoundGrid1.Model.RowCount+1] = true; }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.