我是新的使用telerik工具的winforms,我想知道是否有人可以幫助我找到最好的方式,以便客戶端可以添加一個新的行radgrid並在數據源上顯示此更改。添加新行客戶端已進入數據源radgirdview
到目前爲止我設置了radgrid,以便客戶端可以添加一個新行。我只需要將它綁定到數據源。
private void radGridView1_Click(object sender, EventArgs e)
{
this.radGridView1.AllowEditRow = false;
this.radGridView1.AllowAddNewRow = true;
this.radGridView1.AllowDeleteRow = false;
this.radGridView1.AddNewRowPosition = Telerik.WinControls.UI.SystemRowPosition.Top;
this.radGridView1.MasterTemplate.AddNewBoundRowBeforeEdit = true;
radGridView1.EnableAlternatingRowColor = true;
}
什麼是您的數據源類型 - 列表
@checho its a DataTable – 123456789
我在下面編輯了我的答案,以包含您的問題的答案。 – checho