Click here to Skip to main content
14,876,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I want to separate the value in the cell and transfer it to the other cell.
10 + 10 plus signs


HTML
ID	NAME	AMOUNT	LIMIT
1	RED	       1	10
2	YELLOW	   2	10+10
3	BLUE	   3	10+10+10

-----------------------------
HTML
ID NAME    AMOUNT  LIMIT   LIMIT1  LIMIT2
1   RED        1    10      
2   YELLOW     2    10       10 
3   BLUE       3    10       10     10



Thank you!

What I have tried:

Vb.net Datagridview Slipt Cell ?
Posted
Updated 22-Mar-21 21:17pm
Comments
Maciej Los 23-Mar-21 4:08am
   
Slipt or split?

1 solution

We can't really tell you how to do that: it depends far too much on factors that we have no ideas about.

For example, if your DGV is bound to a DataSource (such as a List or DataTable) then you need to modify the datasource to split the data. Conversely, if you add the data manually to teh table, you need to split the string (which is trivial: String.Split Method (System) | Microsoft Docs[^]) and then ensure there are sufficient columns in your DGV to hold each of the values.

And we can't tell you "do this and it'll work" as a result - there are far, far too many variables involved and we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
So start by looking at your data and where it comes from, and go from there. This shouldn't be difficult with just a little thinking!
   

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