Hi There,
Could someone please give me some pointers as to the best way to achieve the following – I am not really sure whether to use a databound listbox or a datagrid:-
I have a database table that has a column in it which indicates whether the row/record should be included in some statistics that are generated at the end of every month. If the contents of this column are -1 then the row is included in the end of month statistics other it will be 0 and the row will not be included in the month end statistics.
What I wish to do is to allow a user (who will have a certain security permissions when logging into the system) to be able to change which rows/records are included in the month end statistics.
My initial thought was to place the table into a datagrid, but I would like to have a column that basically says “include in month end statistics” and that column will either say yes or no, depending on whether the appropriate column is -1 or 0 respectively – then clicking in the column would allow me to toggle between ayes or no, ideally in a sort of drop down. From what I can see this is not possible with the datragrid control that comes as part of VB 6, but my knowledge of it is quite limited to be honest.
Does anyone know if there is a grid control component out there that might allow me to do something like this (I have looked at component one and can not see anything obvious).
My only other thought at this stage was to place the rows into a databound list box and then allow the appropriate column to be changed by double clicking on the appropriate row ion the listbox.
Any idea / pointers would be much appreciated – thank you.
Newora
Could someone please give me some pointers as to the best way to achieve the following – I am not really sure whether to use a databound listbox or a datagrid:-
I have a database table that has a column in it which indicates whether the row/record should be included in some statistics that are generated at the end of every month. If the contents of this column are -1 then the row is included in the end of month statistics other it will be 0 and the row will not be included in the month end statistics.
What I wish to do is to allow a user (who will have a certain security permissions when logging into the system) to be able to change which rows/records are included in the month end statistics.
My initial thought was to place the table into a datagrid, but I would like to have a column that basically says “include in month end statistics” and that column will either say yes or no, depending on whether the appropriate column is -1 or 0 respectively – then clicking in the column would allow me to toggle between ayes or no, ideally in a sort of drop down. From what I can see this is not possible with the datragrid control that comes as part of VB 6, but my knowledge of it is quite limited to be honest.
Does anyone know if there is a grid control component out there that might allow me to do something like this (I have looked at component one and can not see anything obvious).
My only other thought at this stage was to place the rows into a databound list box and then allow the appropriate column to be changed by double clicking on the appropriate row ion the listbox.
Any idea / pointers would be much appreciated – thank you.
Newora