잠김 Add combox in Datagrid 2003???

  • 2005년 8월 24일 수요일 오전 8:10
     
     
    Dear Team
      DO you have a simple code for adding a combobox in datagid
      Thank you very much

모든 응답

  • 2005년 8월 24일 수요일 오전 9:11
    중재자
     
     
    Hi,

    this is a c# example but classes are the same:

    http://www.codeproject.com/cs/miscctrl/datagridcomboboxcolumn.asp

    look here some vb

    http://xmlfox.com/VBsamples.htm
  • 2005년 8월 24일 수요일 오후 7:15
     
     
    i am sory it isnot working andwritten from the begining

    specially

    With TableStyle.GridColumnStyles
    ' Set datagrid ColumnStyle for Car field
    .Add(New DataGridTextBoxColumn(tblCrrncMngr.GetItemProperties.Item("Car")))
  • 2005년 8월 24일 수요일 오후 7:17
     
     
    i am sory it isnot working anddont written from the begining

    specially

    With TableStyle.GridColumnStyles
    ' Set datagrid ColumnStyle for Car field
    .Add(New DataGridTextBoxColumn(tblCrrncMngr.GetItemProperties.Item("Car")))
    .Add(New DataGridComboBoxColumn(ds.Tables.Item("Companies"), 1, 0))


  • 2005년 8월 26일 금요일 오후 3:32
     
     
    Are you working with a Datagrid or a DatagridView ??
  • 2005년 8월 26일 금요일 오후 3:50
     
     
    Dear Neo
      Thank you very much for replying me i am trying to solve this problem
      for a long time...i saw a code in codeproject but for csharp

      i am using DataGrid vb-2003

      thank you very much
  • 2005년 8월 26일 금요일 오후 4:04
     
     

    Datagrid had limited capabilities. That is why MS came up with DataGridView in whidbey(VS 2005), which you can custom to large limits. Its very simple to add comboboxes in datagridview cells.

    Is there a way you can use DataGridView for your application ?

  • 2005년 8월 26일 금요일 오후 4:10
     
     
    Dear Neo
       vb-2005 as i heard still bita and i heard it still not garanteed  the other problem
       is that the ADO concept is changed
  • 2005년 8월 26일 금요일 오후 4:21
     
     
    Can i use the datagridview in vb 2003
  • 2005년 8월 26일 금요일 오후 9:44
     
     
     Hassano wrote:
    Can i use the datagridview in vb 2003


    You cant. It has been introduced in vs2005. The data model in vb2003 is called ADO.NET and not ADO. And yes, there have been improvements in this model too .
  • 2005년 8월 27일 토요일 오전 7:18
     
     
     neo
    how i will add the combox ...all the codes i saw for csharp in codeproject site
    and there are some point are not clear .....i tryied to aplly the conncept  but
    an error ocure before i complete the line

    Thnk you very much
  • 2005년 8월 27일 토요일 오후 8:57
     
     
    hi neo
      Do you have an answer to this problem

      thank you very much
  • 2005년 8월 31일 수요일 오후 7:43
     
     
    Hi

    I have adapted the VC# to VB.NET and it is working great.  I'll see if i can extract what I have and send you a working VB project sample... 

    Oliver


  • 2005년 8월 31일 수요일 오후 8:05
     
     
    Dear Slay
      Thank you thank you very much i am trying to solve this problem for long time
      But kindely if you mind can you put some comments when doing a difficult or
      strange step

      Thank you very much
  • 2005년 8월 31일 수요일 오후 8:49
     
     
    I have added a text file with some extra comments...

    The code I have sent assumes you want a databound combobox in the datagrid?

    Let me know what you think and see if you can follow my code... ignore the bits where I build a DataTable... it's just so that you can see data in the table and comboboxes when you run the Form...


  • 2005년 8월 31일 수요일 오후 9:03
     
     
    thanks a lot slay
       as you said i want to bound the combox in the datagrid to show the FK
       ex: name(display member) and save "insert"the id (value member)
       But where is the file?

       Thank you very much
  • 2005년 8월 31일 수요일 오후 9:04
     
     
    thanks a lot slay
       as you said i want to bound the combox in the datagrid to show the FK
       ex: name(display member) and save "insert"the id (value member)
       But i couldnt find the file  did u send it?

       Thank you very much
  • 2005년 8월 31일 수요일 오후 9:09
     
     
    to the email address in your profile...

  • 2005년 8월 31일 수요일 오후 9:14
     
     
    Dear slay
      i am sory i didnt got it
      can you send it on  hassano@alexandria.cc

      thank you very much
  • 2005년 8월 31일 수요일 오후 9:44
     
     
    Sent again...  same address as you have written...

    I'm signing off the forum for the night (22:45 here) .. but you can reply to the email when you receive it and i'll be on there...