Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# data grid related question

C# data grid related question

Scheduled Pinned Locked Moved C#
tutorialcsharpcssdatabasequestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muhammad Ahmed 0
    wrote on last edited by
    #1

    how to make certain columns editable and certain ones not editable in the dataGrid control,... for example if the input dataset for the grid was filled using query "select a1,a2 from table1 " i wanna show both columns a1,a2 in grid but only wanna let a2 to be changed from datagrid... Thank you

    Ahmed

    A 1 Reply Last reply
    0
    • M Muhammad Ahmed 0

      how to make certain columns editable and certain ones not editable in the dataGrid control,... for example if the input dataset for the grid was filled using query "select a1,a2 from table1 " i wanna show both columns a1,a2 in grid but only wanna let a2 to be changed from datagrid... Thank you

      Ahmed

      A Offline
      A Offline
      abhinish
      wrote on last edited by
      #2

      make that column read only.. some thing like this

      abhinav

      A M 2 Replies Last reply
      0
      • A abhinish

        make that column read only.. some thing like this

        abhinav

        A Offline
        A Offline
        abhinish
        wrote on last edited by
        #3

        sorry some problem with the post here it is: in the html view of the grid, on that column add this attribute -- modified at 6:48 Monday 7th August, 2006 abhinav

        1 Reply Last reply
        0
        • A abhinish

          make that column read only.. some thing like this

          abhinav

          M Offline
          M Offline
          Muhammad Ahmed 0
          wrote on last edited by
          #4

          My question remains still there.. how ?

          Ahmed

          A 1 Reply Last reply
          0
          • M Muhammad Ahmed 0

            My question remains still there.. how ?

            Ahmed

            A Offline
            A Offline
            abhinish
            wrote on last edited by
            #5

            i have modified the post please check it bro.

            abhinav

            M 1 Reply Last reply
            0
            • A abhinish

              i have modified the post please check it bro.

              abhinav

              M Offline
              M Offline
              Muhammad Ahmed 0
              wrote on last edited by
              #6

              Thanks for the reply, i just forgot to tell that i am woking on Winforms not ASP.Net.. how would be do it in Winforms.. ??? Thanks...

              Ahmed

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups