Click here to Skip to main content
15,741,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to insert two values in one cell in datagridview using csharp.

how can i do using csharp.

Note it is windows application.

Narasiman P.

1 solution

Hi.. Just use your Query to concatenate the two values to be merged.

like below eg:
select ID, cast(QID as varchar(max)) + ' -- ' +Options as twocell, Options from tblOptions

Then just bind the grid with the resultset.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900