Home All Groups Group Topic Archive Search About

Updateing event of datagridview

Author
6 Mar 2007 8:02 AM
abhya
I m using the datagridview.
Except Update event rest of the all i.e. Edit cancel, delete.
I want to read the cell content . if its a Quantity user may change it
so tht bases on tht i m going to calculet the price.

Dim tb1 as textbox
tb1 = CType(DataGrid2.row(e.rowIndex).cell(8).Control(0), TextBox)

Dim a as string
a = tb1.text

REturns only "1".....Not the cell content.
What to do to get the Cell COntent which user may change and then
click Update!

Please advice!!

AddThis Social Bookmark Button