KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a Datagrid view, and I want to remove the row header for all rows... I am trying to remove the rounded part as shown in the below figure (Row header) For that, I have written the code below.... but it's not working... private void dgvProducts_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { e.PaintCells(e.ClipBounds, DataGridViewPaintParts.All); e.PaintHeader(DataGridViewPaintParts.All | DataGridViewPaintParts.Border | DataGridViewPaintParts.None | DataGridViewPaintParts.SelectionBackground | DataGridViewPaintParts.ContentBackground); e.Handled = true; } Would any pls give any sample code for removing the row header in Datagrid view ..... Many thanks. In advance.....
Tags (comma-separated)
Save Edits
Cancel