Data Grid problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shailja
    New Member
    • Feb 2007
    • 123

    #16
    Originally posted by vijaydiwakar
    See this is the third part componant.
    So u have to manage it by urself.
    for run time editing no need to code any more its by default editable i.e. u've to set its editable property =0 or 1 or 2 or 3
    try it Good Luck

    How do i get the component? From which site, i will get that component? Can u suggest me site? Bcoz VB does not provide that component. Please tell me site name from where i get that component

    Comment

    • CoolRiyaz
      New Member
      • Mar 2007
      • 12

      #17
      better can be:

      Build the disconnected recordset with the column names of datagrid as its fields
      and assign it as datasource.


      while saving it to database use this recordsets value:

      Suppose you want columns like
      First Name Last Name Address

      Code:
          with rs.fields
               .append "[First Name]",adBSTR
               .append "[Last Name]",adBSTR
               .append "[Address]",adBSTR
          end with
      
          rs.open
      
          set dtgrid.datasource=rs

      Comment

      • Shailja
        New Member
        • Feb 2007
        • 123

        #18
        Originally posted by CoolRiyaz
        better can be:

        Build the disconnected recordset with the column names of datagrid as its fields
        and assign it as datasource.


        while saving it to database use this recordsets value:

        Suppose you want columns like
        First Name Last Name Address

        Code:
            with rs.fields
                 .append "[First Name]",adBSTR
                 .append "[Last Name]",adBSTR
                 .append "[Address]",adBSTR
            end with
        
            rs.open
        
            set dtgrid.datasource=rs
        I dont understand your reply. Can you give me complete code for disconnected datasource. How to make FlexGrid to VSFlexGrid?

        Comment

        • CoolRiyaz
          New Member
          • Mar 2007
          • 12

          #19
          your prime requirement was data entry in Datagrid.

          This technique is suitable for you.

          Comment

          • Shailja
            New Member
            • Feb 2007
            • 123

            #20
            Originally posted by CoolRiyaz
            your prime requirement was data entry in Datagrid.

            This technique is suitable for you.

            I dont understand your code, you have given before. Please give me complete code. On which event, i should write this code. The code you have given for what, for Data Grid or for VSFlex Grid. Please let me know

            Comment

            • CoolRiyaz
              New Member
              • Mar 2007
              • 12

              #21
              write this code on form load and it is for Datagrid control.

              Comment

              Working...