hey can ne1 tell me how to color the corner of a cell in the datagridview
How to color the corner of the datagridcell
Collapse
X
-
Comment
-
Ok you caught me bluffing, I was thinking of using a gridview template with CSS applied to it:
ASP.NET Gridview and CSSComment
-
DataGrid.OnItem DataBound Method (System.Web.UI. WebControls)
Check this ... you could change the cell[index] color in this ...
Sample Gridview function
corner ? well i guess i got it wrong here.. Moderator please delete my post as its irrelevant..Code:protected void g1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.Cells[1].Text == "DDD") { e.Row.Cells[1].BackColor = System.Drawing.Color.Black; e.Row.Cells[1].Enabled = false; } } }Comment
-
Correct me if I am wrong, but the OP talked about coloring the corner of a cell and not the whole cell. One way to do this would be to apply a background image through CSS. Perhaps we need the amount/ shape of the coloring defined to be sure.Comment
-
Not sure how you ascertained that it was a windows form control from OP, although InsertAlias implied it was.
Smish - please reply to your post urgently, your experts need you!Comment
-
The DataGridView object is a windows forms only object.
The DataGrid was in .net1.x and was used in both windows form and web application (but was a very poor object)
The GridView object is for web applicationsComment
-
Hey guys ...
sorry for the delay in replying....and thanx for the response..
I want it for Windows object datagridview control.if i get to know how do we color the corner of a cell.Like suppose i want to show there are two or more indication to be given to the cell.so i was thinking ill start from lower right corner.for 1st indication ill color red,the next line ill color blue and so on..
hope its clear now..thanxComment
Comment