Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I Have GridView and If I select any Item from 1st Column(Repository Item LooupEdit) remaining Columns fill automatically regarding to that particular Item Selected. Now in new row i need to get the 3rd cell/column value of previous row and perform some calculation and set in new row.? How to complete my task ? help me.
Posted
Comments
agent_kruger 12-Nov-13 7:42am    
please specify what you want to achieve?
srihari1904 12-Nov-13 8:06am    
Hi Harsh,

For eg 1st column of Gridview is RepositoryItem LookupEdit If I select A Item in than eg Paste, remaining columns(Item Description, Tax, Price, Quantity, Total) fill automatically. Now in second row if i select "offer on previous item" I need to fill this row corresponding to previous row. I need to get price amount and if offer is 5% i perform some calculation and show this result in Total. so I need to get the previous row cell value.
agent_kruger 12-Nov-13 8:11am    
so you need to fill datagridview column on the basis of prev. rows . am i right?
srihari1904 14-Nov-13 1:36am    
yes. How to complete this task ?
agent_kruger 14-Nov-13 9:49am    
just by getting the prev. value like

datagridview.Rows[DesiredRow].Cells[1].EdititedFormattedValue.ToString()/

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