>How can I add a text box to a grid and at the same time remove a edit box from a grid at run time ?
Mahmood,
Why not leave them both there and set the DynamicCurrentControl property for the column to use the one you need;
Column.DynamicCurrentControl = IIF(LEN(FieldName) > 25, "Edit1","Text1")