hi,
i hav a windows form, with datagridview and 5 unbound columns..
one is a combo,textbox,checkbox,button,button
first button for save and second for delete.
i can save,edit and delete changes in ma gridview to database table.
but when in my application i need search option for getting the stored details in the database table to gridview...but i am BLANk now help?.
.imp: combo values are from another table.. and whiole saving the details are inserted into my search from "TABLE"..
help me? pls...
Loading
Nilanka DharmadasaPosted Nov 15, 2009, 11:54 PM
I'm not sure whhich part ypu want to know.
1. First you should set dataproperty of each of the column in datagridview.
2. Then you get the datatable 'dt' from database.
3. Then set it to datagridview.
When you set checkboxcolumns properties,
Do not forget to set followinf properties too,
TrueValue, FalseValue
That means, when data comes from datatable, if the value of the column is equal to the value set for 'Truevalue' then it will be shwn as 'Checkd'. If it;s equal to flase value, it will be unchecked.
If you still not getting what you want, paste your code here. Then I can look into it.
If you find this answer useful, do not forget to mark this as accpeted.