winforms - Display image in some certain cells in DataGridView C# -


i have datagridviewimagecolumn in datagridview. wanna display image @ rows. others display rectangle x. how can hide rectangle x.

thanks in advance.

use

foreach (datagridviewrow r in datagridview1.rows)   {   } 

loop after assign datasource datagridview1 can row 1 one

you can use condition in loop set particular cell style


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -