Hi friends
I am trying to learn how to add an expression column in datagridview but its not giving me correct out put
any bit of info would be helpful
Code:
Dim dt As New DataTable
dt.Columns.Add("col1")
dt.Columns.Add("col2")
dt.Columns.Add("col3")
dt.Columns.Add("col4")
dt.Columns.Add("total")
dt.Rows.Add("")
dt.Rows.Add("")
dt.Rows.Add("")
dt.Rows.Add("")
Me.DataGridView1.DataSource = dt
dt.Columns("total").Expression = "[col2]+[col3]"
can someone provide me a link or a sample code please