How can i manipulate DATAGRID?
How can set its column headers,
How can i get its row values so that i can put those values in textboxes to update?
Printable View
How can i manipulate DATAGRID?
How can set its column headers,
How can i get its row values so that i can put those values in textboxes to update?
Here is one of the example:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.color='Blue'";
e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';this.style.color='Black'";
}
}
}
In this example I am adding some style to the ros items itself !!! So you can also do the same way !!!