G
Guest
Hi All;
I'm working in VS2005, and have a DataGridView that is bound to a
datasource. Is there a way to change a column to be a link style column after
the DataGridView populates? Here's how I populate it:
DataSet ds = new DataSet();
dgvShipmentHistory.DataSource = null;
SqlDataAdapter da = new SqlDataAdapter(mySQLClass.Query, mySQLClass.SqlCon);
da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
da.Fill(ds, "ShipmentHistory");
dgvShipmentHistory.DataSource = ds.Tables[0];
dgvShipmentHistory.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
I want to be able to change one of the columns to be a link type column so
that users can click the hyperlink and I can throw up a page. I bind the
grid at runtime, so cannot do this at design time.
Thanks
I'm working in VS2005, and have a DataGridView that is bound to a
datasource. Is there a way to change a column to be a link style column after
the DataGridView populates? Here's how I populate it:
DataSet ds = new DataSet();
dgvShipmentHistory.DataSource = null;
SqlDataAdapter da = new SqlDataAdapter(mySQLClass.Query, mySQLClass.SqlCon);
da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
da.Fill(ds, "ShipmentHistory");
dgvShipmentHistory.DataSource = ds.Tables[0];
dgvShipmentHistory.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
I want to be able to change one of the columns to be a link type column so
that users can click the hyperlink and I can throw up a page. I bind the
grid at runtime, so cannot do this at design time.
Thanks