473,322 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Adding DataGridColumnStyle not mapped to one col?

Hi,
I need to add a DataGridColumnStyle that's not mapped to anything since
it'll be a combination of two datatable columns. Since I don't want to add
another table column for this data, is it possible to create a
DataGridColumnStyle and "tell" it that it'll be composed of column1 +
column2 of the table, or DataGridColumnStyle1 and DataGridColumnStyle2 of
the DataGridTableStyle ?

Thanks,
Angel
Nov 16 '05 #1
1 1330
Hi,

No, it wouldn't work this way. What you could do however is creating a
custom DataGridColumnStyle and overriding its GetColumnDataInRow and
SetColumnDataInRow methods (not sure of the exact spelling) and providing
your own implementation retrieving/setting data from the both of the columns
at once.

"Angel" <none> wrote in message
news:eH**************@tk2msftngp13.phx.gbl...
Hi,
I need to add a DataGridColumnStyle that's not mapped to anything since
it'll be a combination of two datatable columns. Since I don't want to add
another table column for this data, is it possible to create a
DataGridColumnStyle and "tell" it that it'll be composed of column1 +
column2 of the table, or DataGridColumnStyle1 and DataGridColumnStyle2 of
the DataGridTableStyle ?

Thanks,
Angel


Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for...
1
by: The_Rave | last post by:
Hi everyone, I'm trying to add my own template columns to the property builder of ..NET. E.g. a checkbox column, or an image column. But I can't find the sources of the wizard, or a way to add...
1
by: Lukas | last post by:
I want to use the EndEdit function, so I need a DataGridColumnStyle object. But I get a 'index out of range' exception when running the line bellow: DataGridColumnStyle dgc =...
2
by: Angel | last post by:
The Winform datagrid I'm working is already displaying data from a datatable. How can I add columns to that datagrid? I know (or at least I think I know) how to add the tableStyle and...
5
by: Nirosh | last post by:
Hi All, Can any one suggest me a best way to do this .. I have a thrid party tool "EXE" that we need to use with our web service to manipulate some complex XML files, which reside in a...
1
by: jy836 | last post by:
How can I add a column to a DataGrid at design time? (It will not be bound to any DataTable or anything else, but it will be in the middle of other columns that are. The headers of the columns that...
3
by: MIGUEL | last post by:
Hi all, I'm quite lost with how adding web references to a project creates proxy classes. I've developed a web service with two classes inside and that contains three references to three...
2
by: Hamed | last post by:
What does instantText mean in Edit method of DataGridColumnStyle? Regards Hamed
0
by: Kevin Humphreys | last post by:
Hi, I have a windows form datagrid and have added added a checkbox to this grid using the DataGridColumnStyle component. Dim Col As DataGridColumnStyle = New DataGridBoolColumn I need to do...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.