我需要使用JSOM或Rest更改SharePoint Online中列表视图的字段顺序。感谢有人能指出我正确的方向。
答案 0 :(得分:0)
检查以下线程以获取JSOM更新列表视图。
private void button1_Click(object sender, EventArgs e)
{
string item_code = textBox1.Text;
int item;
int.TryParse(item_code, out item);
string quantity = textBox2.Text;
int qty;
int.TryParse(quantity, out qty);
int price = itemprice(item);
int unit_total = price * qty;
int total = 0;
if (dataGridView1.SelectedRows.Count > 0 || dataGridView1.SelectedRows.Count < 2)
{
dataGridView2.ColumnCount = 4;
dataGridView2.Columns[0].Name = "Item";
dataGridView2.Columns[1].Name = "Quantity";
dataGridView2.Columns[2].Name = "Unit Price";
dataGridView2.Columns[3].Name = "Unit Total";
dataGridView2.Rows.Add(item, qty, price, unit_total);
total = total + unit_total;
textBox5.Text = Convert.ToString(total);
}
}
https://msdn.microsoft.com/en-us/library/office/jj245986.aspx