Results 1 to 2 of 2

Thread: Datagrid & tablestyle

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Datagrid & tablestyle

    I have a datagrid which contains several different tablestyles. One of these is also a merged datasource from 2 different data sources. Depending on runtime options any 1 of these tablestyles will be visible and accessable to the user. How can I tell WHICH tablestyle a click or a cellrowchange event originated from? I think it is part of the "sender" object on the click event or the cellchange event but not sure how to surface it.

    gollnick
    William E Gollnick

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Datagrid & tablestyle

    The 'sender' parameter always refers to the object that raised the event, so I would think it's going to be the DataGrid itself in your case. If there's extra information to be gleaned it would be from the 'e' parameter. You event handler declaration will tell you what type it is and you can then read the documentation for that type to see what properties it exposes.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width