i have a datagridview with some columns and i want to check if column number (e.g "6") value is null
remove the row even if the other columns on the same row has value

for example : col1 | col2 | col3

                        mn | nder| john


                    sa |            | sayed
                        |             | tareq

i want when i press a button it will check in every row if col2.value = null then remove the row
the output must be like that
col1 | col2 | col3
mn | nder | john

Something like this?
if (me.DGV.CurrentCell== null) me.DGV.Rows.RemoveAt(me.DGV.CurrentCell.RowIndex)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.