Forum Moderators: open

Message Too Old, No Replies

็How can i remove first column in datagridview

         

sriwirko

9:38 am on Aug 17, 2007 (gmt 0)

10+ Year Member



Hi all,

<snip>

how can i remove that

Thank you

[edited by: engine at 10:00 am (utc) on Aug. 18, 2007]
[edit reason] Please describe problem, no urls, thanks [/edit]

carguy84

1:48 pm on Aug 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In your gridview tag: OnRowDataBound="removeColumn"

And then in your code, add:
Sub removeColumn(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
e.Row.Cells(0).Visible = False
End Sub

That is, if it's a gridview you're using.

Chip-