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. Inheriting/Expanding the DataGrid

Inheriting/Expanding the DataGrid

Scheduled Pinned Locked Moved Visual Basic
csharpphpperlcssdatabase
1 Posts 1 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.
  • G Offline
    G Offline
    Gibble
    wrote on last edited by
    #1

    I'm trying to expand the datagrid's functionality to meet my needs. But I'm also fairly new to .NET (I've done alot of ASP/VB/Perl/PHP/PB, etc programming, just not .NET) Anyhow, what I'd like to be able to do is make my own control, using the datagrid as the foundation. Incorporating different column controls (namely drop downs), and some other standard features like sorting/filtering, etc. My biggest concern, beyond how to use a combo box for a field, is how I can bind that combo box, to the proper lookup table for the id that should be stored in that field. Meaning. I fill my data grid with data from a query something like: "SELECT FirstName, LastName, CityID FROM People" How I can make the 3rd column a drop down combo box, bind it's source to be "SELECT CityId, Name FROM Cities" and have it show just the Cities.Name, but when I save the modifications to the grid, it stores the Cities.CityID in the People table. Does that make sense? While alot of that 'could' be done in code I'd like to have some form of design time editor for this extended datagrid control. A way to give the developer a simpler interface to allow all of this. I'm sure it's possible, but I don't have a clue where to begin. Thanks for the help, --Gibbs

    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