1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to add control in datagrid view in c#.net?

Discussion in 'C#' started by anushka123, Oct 27, 2014.

  1. #1
    Hello,

    i want use textbox in datagridview and how to make autocomplete textbox. Please give the proper answer.
    SEMrush
     
    anushka123, Oct 27, 2014 IP
    SEMrush
  2. Jim Bean

    Jim Bean Member

    Messages:
    24
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    38
    #2
    Could you provide some more details on your requirement?

    Text box controls are normally used in edit mode of a data grid.

    What data will be behind the autocomplete?

    If there is only a small number of options you could load a JavaScript array and search that client side based on a key up event on the text box.

    If the autocomplete has a lot of data then write a REST web service and query this on the key up event with an AJAX request.
     
    Jim Bean, Nov 5, 2014 IP
  3. zinist

    zinist Banned

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    43
    #3
    It is very easy to add other controls to data grid view
    I hope following links will help you
    www.codeproject.com/Articles/12265/How-to-add-other-controls-to-DataGrid-Part-I
    csharp.net-informations.com/datagridview/csharp-datagridview-button.htm
     
    zinist, Jun 26, 2015 IP