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. Visual Basic
  4. Datagrid and Datatable In Pocket PC Vb.net2005

Datagrid and Datatable In Pocket PC Vb.net2005

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasequestion
2 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.
  • E Offline
    E Offline
    ejaz_pk
    wrote on last edited by
    #1

    I am working on a pocket pc application by using vb.net 2005. I have 2 questions about the datagrid and datatable. 1. What I want is that when the datagrid is populated then application should check the datagrid first cell value and if it is null then it should change the backcolor of that row to Red. 2. I am creating a datatable on form load event and the adding rows by executing the sql statement by using datareader. Now I want to add a tablestyle to that datagrid and want to set the width of the datagrid columns. Simple is that how I can set a datagrid table style while setting the datasource to datatable? Thanks In advance

    D 1 Reply Last reply
    0
    • E ejaz_pk

      I am working on a pocket pc application by using vb.net 2005. I have 2 questions about the datagrid and datatable. 1. What I want is that when the datagrid is populated then application should check the datagrid first cell value and if it is null then it should change the backcolor of that row to Red. 2. I am creating a datatable on form load event and the adding rows by executing the sql statement by using datareader. Now I want to add a tablestyle to that datagrid and want to set the width of the datagrid columns. Simple is that how I can set a datagrid table style while setting the datasource to datatable? Thanks In advance

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You should be asking this in the Mobile Development forum since the .NET CF Framework is a smaller subset of the full .NET Framework. It doesn't matter which language you're using, the limitations of the CF Framework change how the code is written.

      ejaz_pk wrote:

      1. What I want is that when the datagrid is populated then application should check the datagrid first cell value and if it is null then it should change the backcolor of that row to Red.

      DataGridView custom draw row[^]

      ejaz_pk wrote:

      2. I am creating a datatable on form load event and the adding rows by executing the sql statement by using datareader. Now I want to add a tablestyle to that datagrid and want to set the width of the datagrid columns.

      DataGridView column width autosize[^]

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      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