ªð¦^¦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 : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD