Hi Joe,
Appreciate your response. Its a kind of dorky of me You are right. I need to move rows up and down and not columns. I have not even come to that to be right. I have a another challenge being newbie to .NET stuff as of overall. I am still having problem understanding the datagrid working.
My ultimate question would be [As being a java progammer for ever]
- When happens when You say "DataBinder.Eval(e.Item.DataItem, "object_key").ToString()" Code on the html side is below.
<asp:TemplateColumn HeaderText="Object Name">
<ItemTemplate>
<asp:label width="250px" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "object_name") %>' ID="lblJobName" NAME="lblJobName"/>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList id="ddlJobName" runat="server" width="250px" DataValueField="object_name" onchange="FieldUpdated(frmSchemaEditor.hdnJobFieldChanged)"></asp:DropDownList>
</EditItemTemplate>
</asp:TemplateColumn>' runat="server" width="250px">' runat="server" width="250px">
> The current application uses the stored procs to retrieve data in rows. I am using template column to achieve this function. I am able to sucessfully retrieve the rows [before Edit is executed it works fine]. When i try to hit edit it gives Error and more like a thread abort error like below.
=========================================
System.Threading.ThreadAbortExceptionThread was being aborted.Thread was being aborted
System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at System.Web.HttpResponse.Redirect(String url) at CSchemaEditor.dgJobDefs_ItemDataBound(Object sender, DataGridItemEventArgs e) in SchemaEditor.aspx.vb:line 1740 at System.Web.UI.WebControls.DataGrid.OnItemDataBound(DataGridItemEventArgs e) at System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at CSchemaEditor.BindJobDefinitionData() in SchemaEditor.aspx.vb:line 1770 at CSchemaEditor.dgJobDefs_Edit(Object sender, DataGridCommandEventArgs e) in SchemaEditor.aspx.vb:line 1494
=========================================
As of i can get it, sorry it may be too basic for you.
Current row consits of values from the Stored proc[table X] say ColumA, ColumnB and ColumnC displayed as table. I need to display a dropdown of list from Stored proc[table Y] when edited and save the selected value to the DB from dropdown. This is where i am stuck. I am doing some thing wrong here and i am getting this error.
Am i on to right track or do i need more study before i move further. :-)
Appreciate any direction.
Enter your message below
Sign in or Join us (it's free).