Datagrid update Value

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
blairetabay
Posts: 34
Joined: Mon Feb 24, 2014 10:12 am

Datagrid update Value

Post by blairetabay » Mon Mar 17, 2014 4:47 pm

in my datagridview i have a value that i want to change the specific column. I use dgHilitedLines to prompt the specific field

i done this correctly. here is the code for that and its working

Code: Select all

 put the dgHilitedLines of group "dgGridOrderListDoctor" into theLine
   put the dgDataOfLine[theLine] of group "dgGridOrderListDoctor" into theDataA

   put theDataA["quantity"] into field "txt_changeQuantity"  of stack "frm_pharmaConfirm"

here is now the problem when i tried to update it happen that it will not update on the specific row that that i click

here is my code for that

Code: Select all

put field  "txt_changeQuantity" into  quantity
   
#     put the dgHilitedLines of group "dgGridOrderListDoctor" into theLine
  # put the dgDataOfLine[theLine] of group "dgGridOrderListDoctor" into theDataA
   


   put quantity into temp
   put "quantity" into theDataColumns
   
      put the dgNumberOfLines of me  +1 into theLineNo 
dispatch "Addline" to the group "dgGridOrderListDoctor" with temp, theDataColumns, theLineNo
I'm clueless on this matter but i tried to figure out :?:

any suggestion will do.

thanks

blaireTabay

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”