How to fill a datagridview from database manually for editing in c#?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crownrajesh
    New Member
    • Oct 2008
    • 2

    How to fill a datagridview from database manually for editing in c#?

    First of all thanks for all who reply this Question.i have a datagridview with first column as combobox and rest as textbox column. i would like to fill the datagridview manually using c# code for editing. also i would like the combobox items not to be cleared.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What do you mean by "Manually"?
    What have you tried so far?


    -Frinny

    Comment

    • crownrajesh
      New Member
      • Oct 2008
      • 2

      #3
      Originally posted by Frinavale
      What do you mean by "Manually"?
      What have you tried so far?


      -Frinny
      i have a ordinary combobox where i can select an item. iwant to fill a datagridview with data which has the same item number of the combobox.
      i want to fill the datagrid for editing. the problem is that i can fill if the combobox colums are of type textbox. but here i have two colums as datagridviewcom bobox . i cannot set the value of these combobox.i.e the datagridviewcom bobox colum text willnot be displayed in the textbox.plz help.

      Comment

      Working...