I have I already asked you about how to show (null)s for nullable empty fields in GridGroupingControl. I need the same functionality for GridDataBoundGrid, but I cannot done it same way.
Please tell me how to implement showing nulls like in standard DataGrid control.
Either I need the functionality to reset the value in datasource to DBNull for current cell.
To set teh current cell to DBNull, you can use code like:
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
this.gridDataBoundGrid1[cc.RowIndex, cc.ColIndex].CellValue = DBNull.Value;
ADAdministrator Syncfusion Team August 23, 2004 11:27 PM
And how to check that the data source allows nulls for current cell ?
ADAdministrator Syncfusion Team August 24, 2004 02:18 AM
You can try:
int field = grid.Binder.ColIndexToField(grid.CurrentCell.ColIndex);