Click here to Skip to main content
15,891,033 members

Comments by ALDER_MORIGGI (Top 2 by date)

ALDER_MORIGGI 12-Nov-13 2:44am View    
No, My problem is how to retrieve and store Excel graph's information in a database.
I've also to import data and rebuild graph on asp.net page like excel graph.
ALDER_MORIGGI 16-Jan-13 9:59am View    
I've linked my DataGridView to a DataSource.
After I've added a new column (a DataGridViewLinkColumn) not included in the Datasource, I want to write different links in that column, but I can't.
If I specify UseColumnTextForLinkValue = true in the cell's column appears the same value; If I specify UseColumnTextForLinkValue = false in the cell's column appears no value.

Below my code:

DataGridViewLinkColumn l_Warning_Agente = new DataGridViewLinkColumn();
l_Warning_Agente.Name = WARNING_COLUMN_NAME;
l_Warning_Agente.HeaderText = "Warning Agent";
l_Warning_Agente.Width = 100;
l_Warning_Agente.ReadOnly = false;
l_Warning_Agente.FillWeight = 10;
l_Warning_Agente.ValueType = Type.GetType("System.String");
l_Warning_Agente.UseColumnTextForLinkValue = true;
//l_Warning_Agente.DataPropertyName = ObjSimPaz.CAMPO_AGENTE_DESCRIZIONE_AGENTIPROPOSTA_TSP24;
l_Warning_Agente.Text = "Warning";
l_Warning_Agente.LinkBehavior = LinkBehavior.SystemDefault;
l_Warning_Agente.LinkColor = Color.Blue;
l_Warning_Agente.TrackVisitedState = true;
dgvTable.Columns.Add(l_Warning_Agente);

foreach (DataGridViewRow dRow in dgvTable.Rows)
{
dRow.Cells["SP24_WARNING"].Value = "
}