Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143396 | Mar 19,2019 12:58 AM UTC | Apr 2,2019 03:04 AM UTC | WinForms | 6 |
![]() |
Tags: GridControl |
public void WireGrid(GridControlBase grid)
{
if(this.grid != null)
UnwireGrid();
this.grid = grid;
grid.Model.Options.SmoothControlResize = false;
this.grid.Model.QueryColWidth += new GridRowColSizeEventHandler(Model_QueryColWidth);
this.grid.ResizingColumns += new GridResizingColumnsEventHandler(grid_ResizingColumns);
grid.Refresh();
WireGridFlag = true;
return;
}
public void UnwireGrid()
{
if(this.grid != null)
{
this.grid.ResizingColumns -= new GridResizingColumnsEventHandler(grid_ResizingColumns);
this.grid.Model.QueryColWidth -= new GridRowColSizeEventHandler(Model_QueryColWidth);
this.grid.Refresh();
this.reset();
this.grid = null;
}
} |
public void UnwireGrid(GridControlBase grid)
{
this.grid = grid;
UnwireGrid();
}
private void button5_Click(object sender, EventArgs e)
{
Helper1.UnwireGrid(this.gridControl1);
} |
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.