Hi there this question is fairly noobish but bear with me.
What would be the right way to add Data to DataGridViewCells in a Databound DataGrid.
Here is the complete problem:
I have a DataBound Datagrid but the DataSet/DataTable behind doesnt have all the required data so I used the dataBoundComplete Event to add my data based on what the dataGrid has.
the data added are some images, some values and colors based on what is on the datagridview i change the color of the rows or the text in the cells. I add an index to the first cell of every row to number every row. Then I change the color of that cell to a dark grey, after that I color the entire row the even rows are light grey the odd rows are white. After that I add some required data to the DataGridViewCells depending on some other objects all of them are in memory and asociated to the rows... Some of this data are Images displayed only if needed.
This seemed to work but its VERY slow when using more than 30 records... What is going on?
What alternatives do I have?
I dont know what to do because the performance of the application degrades a lot when using this aproach.