I would somehow like to copy and paste the contents of an UltraWebGrid column to another column within the same grid. I'm using NetAdvantage 10.2. Can someone point me in the right direction if this is possible to do?
Hi megryan,
You could iterate through the rows of the grid and copy the values from one column to another:
protected void Button1_Click(object sender, EventArgs e)
{
foreach (UltraGridRow row in UltraWebGrid1.Rows)
row.Cells[2].Value = row.Cells[1].Value;
}
Another option would be to create a DataTable and write in it the values from a column you want. Then you can use this table to populate another column from the grid.
If you have any questions, please let me know.
Thank you for the tip Nikolay.