Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
14679 | Jun 2,2004 10:27 AM UTC | Jun 2,2004 02:08 PM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_CellClick(object sender, GridCellClickEventArgs e) { //don''t sort col 2 if(e.RowIndex == 0 && e.ColIndex == 2) { e.Cancel = true; } }Now if you want to display a special cursor, you can do so by deriving the grid and overriding OnSetCursor. Here is a sample. You can add additional checks to narrow where you set the cursor.
>private void gridDataBoundGrid1_CellClick(object sender, GridCellClickEventArgs e) >{ > //don''t sort col 2 > if(e.RowIndex == 0 && e.ColIndex == 2) > { > e.Cancel = true; > } >} >> >Now if you want to display a special cursor, you can do so by deriving the grid and overriding OnSetCursor. Here is a sample. You can add additional checks to narrow where you set the cursor. >
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.