Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
22673 | Dec 18,2004 04:21 AM UTC | Dec 19,2004 04:09 AM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_CurrentCellChanged(object sender, EventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; GridStyleInfo style = this.gridDataBoundGrid1[cc.RowIndex, cc.ColIndex]; if(style.CellType == "CheckBox") { Console.WriteLine(style.CellValue); } }If you want to catch changes to your datasource from outside the grid, then you can try some event on your datasource, maybe DataTable.COlumnChanged.
>private void gridDataBoundGrid1_CurrentCellChanged(object sender, EventArgs e) >{ > GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; > GridStyleInfo style = this.gridDataBoundGrid1[cc.RowIndex, cc.ColIndex]; > if(style.CellType == "CheckBox") > { > Console.WriteLine(style.CellValue); > } >} >> >If you want to catch changes to your datasource from outside the grid, then you can try some event on your datasource, maybe DataTable.COlumnChanged.
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.