Results 1 to 3 of 3

Thread: Possible to use predefined variables in column expression?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    2

    Possible to use predefined variables in column expression?

    I have some variables that I would like to include in an expression statement for a column that is part of a datatable. Is this possible?

  2. #2
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: Possible to use predefined variables in column expression?

    Please explain it properly or if possbile then by any example scenario.
    Thanks and Regards,

    Muhammad Abbas

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    2

    Re: Possible to use predefined variables in column expression?

    So instead of defining an expression based on math using other column names, e.g.:

    DataGridView.Columns("SumZ").Expression = "HZ + RZ"

    I want to do something like:

    Dim mean As Integer = 10
    DataGridView.Columns("SumZ").Expression = "(HZ + RZ) / mean"

    Does this make sense?

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