Re: disallow the user to resize Columns' width in a datagrid
- From: "Arun" <arunkumarselvaraj@xxxxxxxxx>
- Date: 16 May 2005 00:29:30 -0700
Write a DataGrid MouseUp event for ColumnResize and RowResize
Try the code below.
private void dataGrid1_MouseUp(object sender, MouseEventArgs e)
{
DataGrid myGrid=(DataGrid)sender;
DataGrid.HitTestInfo myHitInfo = myGrid.HitTest(e.X,e.Y);
if(myHitInfo.Type == DataGrid.HitTestType.ColumnResize)
{
//Do Nothing
}
}
Hope this helps,
Cheers,
Arun.
www.innasite.com
.
- Follow-Ups:
- Re: disallow the user to resize Columns' width in a datagrid
- From: Sergey Bogdanov
- Re: disallow the user to resize Columns' width in a datagrid
- References:
- disallow the user to resize Columns' width in a datagrid
- From: Joe Abou Jaoude
- Re: disallow the user to resize Columns' width in a datagrid
- From: Sergey Bogdanov
- disallow the user to resize Columns' width in a datagrid
- Prev by Date: how can i encrypt data calls?
- Next by Date: Re: disallow the user to resize Columns' width in a datagrid
- Previous by thread: Re: disallow the user to resize Columns' width in a datagrid
- Next by thread: Re: disallow the user to resize Columns' width in a datagrid
- Index(es):
Relevant Pages
|