Results 1 to 5 of 5

Thread: Datagrid: Add tablestyles at runtime

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251

    Datagrid: Add tablestyles at runtime

    I have designed a number of tablestyle in my datagrid at design time.

    I am using late bound datasets, so I want to select one of the pre-defined tablestyles when I create the binding at runtime.

    How is this done as I can only see the tablestyle is a readonly property.

    Any help would be appreciated.
    Control Data Systems
    www.members.shaw.ca/cdsystems

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Hmm , you mean when you click that little highlighted text "AutoFormat" and then you get colorful datagrid styles ???

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251
    I managed to get the correct style mapped.

    The problem was that my table in the dataset did not have a name so mapping was not possible.

    By supplying a name to the table when I filled the dataset, the mapping could function correctly.

    adp.fill(ds,"TableName")
    Control Data Systems
    www.members.shaw.ca/cdsystems

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    lol...I was talking about something completely different .

    Good it's working now .

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251
    Thank Pirate,

    I appreciate you help.
    Control Data Systems
    www.members.shaw.ca/cdsystems

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