I Want To Merge ColumnHeader Cells of DataGridView Control.
I would Like Draw a Rectange in such a way tha From Sixth Column Header to 9th Column
kindly Reply Regarding this Topic
Lakshman C B
View Complete Post
I have a DetailsView control with two columns and 7 rows. I need the two columns to merge in row two and get rid of the header. I only the data from the DB to display no the header name in row two. How do I merge it in DetailsView control?
Help is much appreciated.
I am working on ASP.NET 4.0 application.I want to bind the data in a datatable to a grid control and i want to do some formatting.
I want to merge the cells or hide the cell border in the first three columns (Merge every 5 cells in a column). And Vertical align the text to center.
Also i need row border at the end of every 5 rows.
For example, If i am binding 10 rows to the Grid i need row border only at the end of 5th and 10th row. And merge every five cells only in the first three columns. All the other columns should not be changed.
I also want to change the background color of the cells in all rows based on the value in that cell.
How to achieve this in ASP.NET 4.0 and which control can be used to display in this format?
I am trying to delete a Multiple rows from database through datagridview. some more information about coding is "data as Dataset" & "adap as TableAdapter" & "Group is my Table Name". I am using Visual Basic 2008 express edition with sql server
2008 Express Edition with Management Studio. I created the .mdf file in Mangement studio and i connected this file directly to the project. My opreating System is WINxp Proffessional. Now my code is given below:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each Row As DataGridViewRow In GroupDataGridView.SelectedRows
while using this code i can delete only one row but when i am trying to delete 2 to 3 rows on one time then it shows me this error
Row provided does not belong to this DataGridView control. Parameter name: dataGridViewRow.
My virtual mode is on False
How to resolve this problem please help me out