hi
With below code can we create onClick event.
var row = (DataRowView)e.Row.DataItem;
var currentPerson = row[0].ToString();
var currentDate = row.DataView.Table.Columns[i];
var commandArgument = currentPerson + ":" + currentDate;
LinkButton button = new LinkButton {
Text = row[i].ToString(),
CommandName = "Select",
CommandArgument = commandArgument,
CssClass = "badge badge-warning badge-pill",
OnClick = "Linkbtnclass_Click",
OnClientClick = "GetModuleData(this)"
};
e.Row.Cells[i].Controls.Add(button);
Thanks