datagrid display contents
I have a datagrid with data and i wish to display the contents of a field in column1 (pk) that has been changed.
How can i do this and i use this for the datagrid
DataGrid1.SetDataBinding(ds, "Departments")
I can display data with datagrid ok.
[271 byte] By [
jagguy] at [2007-11-20 10:51:01]

# 1 Re: datagrid display contents
If I understand correctly your problem is that you wish the grid reacts to a change?
Now as far as I know .net queues up the events it recievs from the controls on a page.
If you want to force posting the page all you have to do is to force autopostback to true for the control you are interested in (in the .aspx page). By default is set to false.
Ex:
<asp:datagrid ID="datadrig" runat="server" autopostback="true"/>
Hope it helps.
Adria
# 2 Re: datagrid display contents
No I just want to know how i can display a field in a datagrid.
got it
Dim Table1 As DataTable
Table1 = DataGrid1.DataSource.Tables(0)
MsgBox(Table1.Rows(0).Item(0))
jagguy at 2007-11-10 3:09:25 >
