LittlBUGer
Programmer
Hello all. I have a very strange and interesting DataGrid issue that I've been pulling my hair out at for 2 days now. I'm updating a web-based timekeeping program (if you want to call it that) for my company. There is a certain interface which allows admins to basically edit any information for any employee. I have a DataGrid in this interface with several templatecolumns and a dropdownlist and literal associated with each as well as a button column. I have it in dropdownlists and literals because the admin can choose to edit whatever they want and then basically do a bulk edit.
Anyway, the template columns and dropdownlists have information such as: Record #, Employee, Date, Hours, Project, Task, Comments, etc. The DataGrid is created only after the admin chooses a date range and either an employee or a project. When the datagrid is created, it can have several entries (lines/rows) with the information I said above depending on the date range.
So, the problem... When the DataGrid is initially created, it looks fine. For example, with the sample data I'm using, I get 3 rows with the correct column information in each of the appropriate dropdownlists. Now, the bulk edit works fine here, but that's not the issue. If I select the Edit button in the button column (to edit a single row), and I update the information and hit my Update button, it updates successfully but I have it force the datagird to disappear. Thus I must click on my Show Data button again to make it reappear and see the changes (if I wanted to). When I do this, this is where the problem comes in. It shows the 3 rows, but in the exact row that I just updated all of the dropdownlists are completely empty when, obviously, they shouldn't be. Though the data that's not in dropdownlists, like the date, hours, and comments are just fine. Now it doesn't matter what I do, that same row will stay empty. Even if I chose a completely different employee and different information, that exact same row (even though the actual data doesn't relate at all to the previous data I updated) is still empty. The only way right now for me to fix this is to completely exit the site and come back in.
I have no idea why it's doing this as everything is set for it to show the data properly and all other rows work fine. It's only that one row, no matter which data is there, that's empty. Has anyone had a similar experience of may have a suggestion? I'd be happy to provide some more details if needed, but I was just trying to give a bried overview for my first post. Thanks!
Oh, and BTW, I'm programming in VB.NET and ASP.NET 1.1.
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
Anyway, the template columns and dropdownlists have information such as: Record #, Employee, Date, Hours, Project, Task, Comments, etc. The DataGrid is created only after the admin chooses a date range and either an employee or a project. When the datagrid is created, it can have several entries (lines/rows) with the information I said above depending on the date range.
So, the problem... When the DataGrid is initially created, it looks fine. For example, with the sample data I'm using, I get 3 rows with the correct column information in each of the appropriate dropdownlists. Now, the bulk edit works fine here, but that's not the issue. If I select the Edit button in the button column (to edit a single row), and I update the information and hit my Update button, it updates successfully but I have it force the datagird to disappear. Thus I must click on my Show Data button again to make it reappear and see the changes (if I wanted to). When I do this, this is where the problem comes in. It shows the 3 rows, but in the exact row that I just updated all of the dropdownlists are completely empty when, obviously, they shouldn't be. Though the data that's not in dropdownlists, like the date, hours, and comments are just fine. Now it doesn't matter what I do, that same row will stay empty. Even if I chose a completely different employee and different information, that exact same row (even though the actual data doesn't relate at all to the previous data I updated) is still empty. The only way right now for me to fix this is to completely exit the site and come back in.
I have no idea why it's doing this as everything is set for it to show the data properly and all other rows work fine. It's only that one row, no matter which data is there, that's empty. Has anyone had a similar experience of may have a suggestion? I'd be happy to provide some more details if needed, but I was just trying to give a bried overview for my first post. Thanks!
Oh, and BTW, I'm programming in VB.NET and ASP.NET 1.1.
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein