Hi all,
I need to add a replace button to every row in the RadGrid. Any help is appreciated
My code is as follows
<div>
<telerik:RadGrid ID="grdVwPrecisionsources" runat="server" OnNeedDataSource="PrecisionSourcesDataGrid" Width="60%">
<ClientSettings>
<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
</ClientSettings>
</telerik:RadGrid>
<div>
ascx.cs
protected void PrecisionSourcesDataGrid(object sender, EventArgs e)
{
var table = new DataTable();
table.Columns.Add("Source");
table.Columns.Add("ID");
table.Columns.Add("Name");
table.Columns.Add("Date");
table.Columns.Add("Reminder");
table.Columns.Add("Status");
table.Columns.Add(" ", typeof(string)); - This needs to be button column
table.Rows.Add("Point", "M6-515", "Co-57", "8/30/2016", "1 week to expiration", "Replace in 40 days", "");
table.Rows.Add("Point", "M6-515", "Co-57", "8/30/2016", "1 week to expiration", "Replace in 40 days", "");
grdVwPrecisionsources.DataSource = table;
}