datagridview - Replacing an auto generated column with a hyper link column in C# -


i trying replace autogenerated column new datagridhyperlinkcolumn, code

private void dgv_university_autogeneratingcolumns(object sender, datagridautogeneratingcolumneventargs e) {      if (e.propertyname=="web address")      {          datagridhyperlinkcolumn col1 = new datagridhyperlinkcolumn();          col1.header = "web address";          e.column =col1;      } } 

but can't seem generate same contents of column, can please tell me how this?

create column in datagridview before setting datasource or in designer
set datapropertyname = "web address";

datagridview use column displaying data of web address column of datasource
, other columns generated well


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -