المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : DataGridView



C# Programming
04-14-2009, 09:52 AM
Hi,
I have One DataGridView and One Button In Form.
I Form Load I Have Assigned DataSource To Datagridview by calling one function abc().
on button click i am adding search condtion to my select query.


abc function performs...
i am counting number of records Returned from the select query if it is not zero then i am assigning datasource........
now i want to clear the datagridview when no of records is zero.
how can we do this.
thanks in advance