ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

gridview¼W¥[­pºâ¦C(ASP.NET)

gridview¼W¥[­pºâ¦C(ASP.NET)

Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
    e.Row.Cells(2).Text = (Convert.ToInt32(e.Row.Cells(0).Text) * Convert.ToDouble(e.Row.Cells(1).Text)).ToString()
End Sub

¦]¬°·|±q¼ÐÃD¦C¶}©l­pºâ·|³y¦¨²§±`¡A½Ð±Ð¦p¦ó±q¼ÐÃD¦C¤U­±¶}©l­pºâ¡A«ÜÁÂÁ¤j®aªºÀ°¦£^^

³B²z«e¥ý§PÂ_¬O¤£¬O¸ê®Æ¦C
If e.Row.RowType = DataControlRowType.DataRow Then
    ... '²¤
End If

TOP

³B²z«e¥ý§PÂ_¬O¤£¬O¸ê®Æ¦C
If e.Row.RowType = DataControlRowType.DataRow Then
    ... '²¤
End If
Luc µoªí©ó 2010-8-15 00:24



    ÁÂÁÂLuc ªºÀ°¦£^^

TOP

        ÀR«ä¦Û¦b : ¡i¬O§_µo´§¤F¨}¯à¡H¡j¤H¶¡¹Ø©R¦]¬°µu¼È¡A¤~§óÅã±o¬Ã¶Q¡CÃø±o¨Ó¤@½ë¤H¶¡¡AÀ³°Ý¬O§_¬°¤H¶¡µo´§¤F¦Û¤vªº¨}¯à¡A¦Ó¤£­n¤@¨ý¨Dªø¹Ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD