Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21344 | Nov 8,2004 01:49 PM UTC | Nov 8,2004 03:35 PM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
private void Form1_Load(object sender, System.EventArgs e) { DataTable dt = new DataTable("MyTable"); int nCols = 4; for(int i = 0; i < nCols; i++) this.gridDataBoundGrid1.EnableAddNew = false; this.gridDataBoundGrid1.DataSource = dt; }Now if you are trying to reset data into an existing grid, then you may want to try calling:
grid.CurrentCell.EndEdit();
grid.Binder.EndEdit();
You can also try this code to make sure there is no currentcell when you reset the data.
grid.CurrentCell.MoveTo(-1, -1);
grid.Binder.CurrentPosition = -1;
If you can post a sample showing the problem, we can try to suggest something.
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.