PDA

View Full Version : about checkbox issue



sadeque
Feb 01, 2010, 5:40 AM
<ext:Column DataIndex="bDefault" Header="bDefault" Align="Center">
<Editor>
<ext:Checkbox ID="CheckBox1" runat="server"/>
</Editor>
</ext:Column>


when i use this code then its only shows true false string in grid. but i want to show check box yes no asper database information.

Please help

sadeque
Feb 01, 2010, 6:58 AM
How can i show checkbox in datagrid instead of true/false?

Vladimir
Feb 01, 2010, 7:03 AM
Hi,

Use CheckColumn

sadeque
Feb 01, 2010, 7:29 AM
I used the following code. but not working---



<ext:Column DataIndex="bInUseReport" Header="Report" Align="Center" Width="50">
<Editor>
<ext:CheckboxColumn ID="CheckBoxColumn1" runat="server"/>
</Editor>
</ext:Column>


at database it is true and false. but at grid i want to show all cell as checkbox.
if it is true then it will be checked and if false then not checked.

Vladimir
Feb 01, 2010, 7:34 AM
Hi,

You have to use CheckColumn instead Column. To make it editable set Editable="true"

<ext:CheckColumn DataIndex="Discontinued" Header="Discontinued" />

sadeque
Feb 01, 2010, 7:40 AM
GR8.

It works.

Many Many Thanks.