thanks guys ................ i found the solution myself as well it is given below

VB Code:
  1. If MSHFlexGrid1.Rows <= 2 Then
  2.         MSHFlexGrid1.Clear
  3.     Else
  4.         MSHFlexGrid1.RemoveItem (MSHFlexGrid1.Row)
  5.     End If

anyway your posts are helpful.
thanks
anup