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. Advertisements

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. Bob
    Replies:
    3
    Views:
    7,953
    William Gower
    Aug 1, 2004
  2. jg
    Replies:
    1
    Views:
    924
    =?Utf-8?B?U2hhaWxlc2ggSmFubnU=?=
    Aug 17, 2004
  3. Chuck Foster
    Replies:
    4
    Views:
    567
  4. Krishna
    Replies:
    0
    Views:
    642
    Krishna
    Jul 13, 2006
  5. witek
    Replies:
    0
    Views:
    9,204
    witek
    Jul 18, 2006
  6. mark4asp
    Replies:
    2
    Views:
    775
    Jasbird
    Nov 11, 2006
  7. =?Utf-8?B?RGljaw==?=

    Binding to a DataSet with more than one DataTable

    =?Utf-8?B?RGljaw==?=, Feb 5, 2007, in forum: ASP .Net
    Replies:
    9
    Views:
    4,346
    Steven Cheng[MSFT]
    Feb 7, 2007
  8. Larry R
    Replies:
    1
    Views:
    496
    marss
    Jun 8, 2007
Loading...