Mun,
Use Mygrid.
column1.currentcontrol. The currentcontrol property is linked to the column not the grid.
HTH
Barbara
>Barbara
>
>I tried your first method to detach the grid and the default textbox control displayed instead of the checkbox control when I do the same search again without doing any updating.
>I have two buttons in the form. The search button is used to create a temporary table and display the grid based on the search value entered in the textbox. The update button is used to update the grid table.
>
>For the second method, when I add one code to reset the currentcontrol to checkbox, i.e myform.mygrid.currentcontrol = "myCheckBox"
>
>It gives an error:
>current control: expression evaluated to an illegal value
>
>In debugging, the value for the currentcontrol is the default textbox control.
>
>What is the problem for this?
>
>
>Mun