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. Datagridview Arabic Localization? C# 2010 Application

Datagridview Arabic Localization? C# 2010 Application

Scheduled Pinned Locked Moved C#
csharpdatabasewinformsquestion
4 Posts 3 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.
  • P Offline
    P Offline
    Paramu1973
    wrote on last edited by
    #1

    I have small Windows Forms project. And My DataGridView Query like the following manner: string MyQuery1="select field1,field2,field3 from myTable"; Con.Open(); MySqlAdapter=New sqlAdapter(MyQuery1,con); MySqlAdapter.fill(MyTable); Con.Close(); DataGridview1.DataSource=MyTable; Now, my DataGridView's columns displaying like Field1, Feidl2, Field3... good in English Mode...[Left to right] But when My user changes his keyboard language this datagridview should display like the below manner...Is it possible? Field3, Fiedl2, Field1 [Right to left] Thanks && Regards :thumbsup: PARAMU

    N D 2 Replies Last reply
    0
    • P Paramu1973

      I have small Windows Forms project. And My DataGridView Query like the following manner: string MyQuery1="select field1,field2,field3 from myTable"; Con.Open(); MySqlAdapter=New sqlAdapter(MyQuery1,con); MySqlAdapter.fill(MyTable); Con.Close(); DataGridview1.DataSource=MyTable; Now, my DataGridView's columns displaying like Field1, Feidl2, Field3... good in English Mode...[Left to right] But when My user changes his keyboard language this datagridview should display like the below manner...Is it possible? Field3, Fiedl2, Field1 [Right to left] Thanks && Regards :thumbsup: PARAMU

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2
      1. Format your code snippets using the "code block" toolbar item A simple way would be to have another query with the field order reversed.

      I know the language. I've read a book. - _Madmatt

      modified on Wednesday, June 29, 2011 11:59 AM

      1 Reply Last reply
      0
      • P Paramu1973

        I have small Windows Forms project. And My DataGridView Query like the following manner: string MyQuery1="select field1,field2,field3 from myTable"; Con.Open(); MySqlAdapter=New sqlAdapter(MyQuery1,con); MySqlAdapter.fill(MyTable); Con.Close(); DataGridview1.DataSource=MyTable; Now, my DataGridView's columns displaying like Field1, Feidl2, Field3... good in English Mode...[Left to right] But when My user changes his keyboard language this datagridview should display like the below manner...Is it possible? Field3, Fiedl2, Field1 [Right to left] Thanks && Regards :thumbsup: PARAMU

        D Offline
        D Offline
        DoctorMick
        wrote on last edited by
        #3

        This should work. I've just tried it and it seemed to do exactly what you wanted.

        dataGridView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;

        P 1 Reply Last reply
        0
        • D DoctorMick

          This should work. I've just tried it and it seemed to do exactly what you wanted.

          dataGridView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;

          P Offline
          P Offline
          Paramu1973
          wrote on last edited by
          #4

          My 1/2 tension get released. Nice & Wonderful !!! Thanks For The Helps...!:rose: Thanks & Regards PARAMU

          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