Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
22988 | Dec 31,2004 07:38 AM UTC | Jan 7,2005 03:27 AM UTC | WinForms | 14 |
![]() |
Tags: GridControl |
public override Control CreateNewControl(Control parent, int row, int column)
{
GridDataBoundGrid grid1 = new GridDataBoundGrid(DataBoundGridModel);
WireNewControl(grid1);
return grid1;
}
private void gridRecordNavigationControl1_HSplitPosChanged(object sender, System.EventArgs e)
{
if(this.gridRecordNavigationControl1.HSplitPos < 25)
this.gridRecordNavigationControl1.HSplitPos = 25;
}
public class MyGridRecordNavigationControl : GridRecordNavigationControl { public override void OnMoveSplitter(object sender, int x, int y) { Point pt = this.PointToClient(Control.MousePosition); if(pt.X < 50 || pt.X > this.Size.Width - 50) { Console.WriteLine("Ignoring a splitter move."); return; } base.OnMoveSplitter (sender, x, y); } }
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.
or the page will be automatically redirected to sign-in page in 10 seconds.