DataGridView appearance

Hello all,
Be default, a data grid view which is presenting a data in two columns, has "three" columns. The first column (left-most) just shows an arrow head on the active row, and allows us to select rows, etc. Is there a way to hide this column?
Also, I was wondering of adding a column to the end with a "X" image in it, which, when clicked, deleted that row from the data grid view.
Please advice
Huji

And code like this in the datagridview's Cell_Click event will do the deletion

If e.ColumnIndex = 4 Then '<<< SEE NOTE BELOW
Dim drv As DataRowView = BindingContext(dgvMain.DataSource).Current
drv.Delete()
End If

The 4 there is based on the pattern you used as an example. You might have to alter it if there are more or less columns before the Delete column that has been added. And I've included no refinements like checking if a header cell, or a new row cell, has been clicked. But that's the idea.

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code.
First, I create an Abstract Class for my DataTables Common Code. This class Inherits from DataTable.
Also, it can …

It’s quite interesting for me as I worked with Excel using vb.net for some time.
Here are some topics which I know want to share with others whom this might help.
First of all if you are working with Excel then you need to Download the Following
…

In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you!
In this Micro Tutorial, you'll learn yo…