If ds.Tables(0).Rows.Count > 0 Then
GdvAdd.DataSource = ds.Tables("AddTbl")
GdvAdd.DataBind()
Else
ds.Tables(0).Rows.Add(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
GdvAdd.DataSource = ds.Tables("AddTbl")
GdvAdd.DataBind()
GdvAdd.Rows(0).Visible = False
End If
Posted by:
T.saravanan
on: 12/26/2011
Level:Silver | Status: [Member] [MVP] | Points: 10
Hi Sunil Soni,
Kindly post your code inside the code tag.
Can you explain uses of this line? --> ds.Tables(0).Rows.Add(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
I think its not the perfect code.