Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
15999 | Jul 2,2004 07:01 AM UTC | Jul 2,2004 08:08 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
Grid[gridRow, (int)ColumnOffsets.ServerSelectedColumn].CheckBoxOptions = new GridCheckBoxCellInfo(true.ToString(), false.ToString(), "", false);
Grid[gridRow, (int)ColumnOffsets.ServerSelectedColumn].CellValueType = typeof(bool);
This code assumes you want to actually store bool values true and false into your datasource. If you are storing "1" ann "0", then you should change these lines to:
Grid[gridRow, (int)ColumnOffsets.ServerSelectedColumn].CheckBoxOptions = new GridCheckBoxCellInfo("1", "0", "", false);
Grid[gridRow, (int)ColumnOffsets.ServerSelectedColumn].CellValueType = typeof(string);
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.