Binding Two DataTable Columns to One DataGrid Column

Discussion in 'ASP .Net Datagrid Control' started by quiggle, Apr 2, 2004.

  1. quiggle

    quiggle Guest

    I have a DataTable that I am binding to a DataGrid. I need to take two columns in the DataTable, and bind them to one row in the DataGrid (for example, the columns firstName and lastName need to be displayed in one column as lastName, firstName).

    Theoretically, we could modify the stored procedure to return the proper values, but that starts to get a bit hairy if we need to incorporate other formatting elements (for example we have a DataGrid column that needs to be formatted as orgCodeName (orgCodeNumber) ). Also the stored procedure is used in more places than just the page that I am working on.
    Any help would be much appreciated!

    Thanks!

    Aimee
    quiggle, Apr 2, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jg
    Replies:
    1
    Views:
    722
    =?Utf-8?B?U2hhaWxlc2ggSmFubnU=?=
    Aug 17, 2004
  2. Chuck Foster
    Replies:
    4
    Views:
    421
  3. witek
    Replies:
    0
    Views:
    9,013
    witek
    Jul 18, 2006
  4. mark4asp
    Replies:
    2
    Views:
    619
    Jasbird
    Nov 11, 2006
  5. Larry R
    Replies:
    1
    Views:
    382
    marss
    Jun 8, 2007
Loading...

Share This Page