开发者

how to hide rows from datagrid which doestn get data from datatable

开发者 https://www.devze.com 2023-02-26 12:17 出处:网络
i have datagrid with 5 columns in it. and i write some data to that datagrid, and i dont use any datatable.

i have datagrid with 5 columns in it.

and i write some data to that datagrid, and i dont use any datatable.

now i开发者_C百科 want to hide some rows(like filtering)

how can i do this???


If you have the index of the row you need to hide you can use the following statement:

dataGridView.Rows[rowIndex].Visible = false;
0

精彩评论

暂无评论...
验证码 换一张
取 消