Dan
Really appreciate your time & patience on this.
Implemented all your changes but now getting the following error on the DDL populate routine...
Compiler Error Message: BC30408: Method 'Private Sub cboPriority_Populate()' does not have the same signature as delegate 'Delegate Sub EventHandler(sender As Object, e As System.EventArgs)'.
I callt the above routine 'Private Sub cboPriority_Populate()' from the ddl as follows...
OnSelectedIndexChanged="cboPriority_Populate"
'cboPriority_Populate()' gives a 'paranthese not required' error !
I often get this with routines in asp.net!
I'm not asking for any arguments in the sub and not sending any arguments, so why is there a conflict?
I assume it's then caused by the OnItemDataBound function which starts...
Private Sub dg_ItemDataBound(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs)
Incidentally I already have a OnItemDataBound function which shows a 'Confirm msg' box when the delete button in the grid is clicked.
Anyway I've added the code to the OnItemDataBound as you suggested in your last post.
Can I populate the DDL (0 to 8) here or in the DDL populate routine as you first suggested?
Basically what I am trying to do here is diaplay a simple datagrid bound to a database.
The datagrid consists of the usual bound columns plus a delete button column which works fine plus a dropdown list of numbers (0-8) bound to the priority field and showing the current row value.
What I'm trying to achieve here is to allow the user to be able to quickly change the 'Priority' field value by means of the said DDL so as soon as they change to a different value it will update the underlying value in the table and then postback and display the updated datagrid
Incidentally my initial plan was to put in the above 'UPDATE routine' in the 'DDL on Change event' routine.
I'm ok with the 'UPDATE' routine, it's just referencing the DDL and getting the 'onChange' event to kick in (as you know!).
I used to be able to do this so easily in classic asp
