This is my technical area for troubleshooting and learning new programming skills and much more. Here, you will find answers on a wide range of technologies such as AI, Machine Learning, OpenAI, Databricks, ASP.NET, C#, Python, Microsoft Access, MySQL, Amazon Web Services, SQL Server, PL/SQL, JD Edwards, SAS, Salesforce, APIs, MVC, and many others. Please feel free to visit and join the discussion!
Thursday, January 28, 2010
Gridview Theme css not working in ie8
Monday, January 11, 2010
How to stop repeat in column value using datagrid C#?
string acc5;
string acc6;
public void productsGridView_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if ((e.Row.RowType == DataControlRowType.DataRow))
{
acc6 = e.Row.Cells[2].Text;
if (e.Row.Cells[2].Text == acc5)
{
acc6 = e.Row.Cells[2].Text;
e.Row.Cells[2].Text = "";
}
acc5 = acc6;
}
}
Thursday, January 7, 2010
Insert Dynamic Rows in Gridview
in row RowDataBound use this code
Table tbl = e.Row.Parent as Table;
if (tbl != null)
{
GridViewRow row = new GridViewRow(-1, -1, DataControlRowType.DataRow, DataControlRowState.Normal);
TableCell cell = new TableCell();
HtmlGenericControl span = new HtmlGenericControl("span");
span.InnerHtml = "Insert Row";
cell.Controls.Add(span);
row.Cells.Add(cell);
tbl.Rows.AddAt(tbl.Rows.Count - 1, row);
}