0

like I can eliminate the botton (Find and Clean) of a GridControl, and alone to leave TextEdit.

enter image description here regards Alex

user1813375
  • 101
  • 3
  • 12
  • I'm not sure you can do that. Can I ask why you'd like to? BTW, you can always just add a textbox and add functionality. – E.T. Apr 14 '13 at 10:45

2 Answers2

0

You can use the approach demonstrated in How to customize the Find Panel layout? example:

  1. Create the GridControl/GridView descendant components
  2. Override the GridView.CreateFindPanel method to provide your own customized FindControl instance into the view.
DmitryG
  • 17,677
  • 1
  • 30
  • 53
0

Yes it is possible. you will need to access the FindControl and then access the layoutControl and its Control Items. Use the Code below in form_load etc:

         // Get the Find Control on Grid : gcMain
        FindControl _FindControl = gcMain.Controls.Find("FindControl", true)[0] as FindControl;

           //Get the Layout Control
        LayoutControl lc = (_FindControl.ClearButton.Parent as LayoutControl);

        //Allow Control Hiding 
        lc.Root.AllowHide = true;

        //Hide Find Button
        (lc.Root.Items[2] as LayoutControlItem).ContentVisible = false;


        //Hide Clear Button
        (lc.Root.Items[3] as LayoutControlItem).ContentVisible = false;
SMA
  • 74
  • 2