Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guys,
i have a problem like
1. i have a list of languages
2.by default i will list the english
3.user selects other languages from the checkedlistbox,
4.if he selects other language, the language data should be displayed as extra columns into the datagridview beside the default language.

any help is appreciated.
Posted
Comments
Krunal Rohit 17-Nov-15 8:28am    
Member 11807562 18-Nov-15 1:45am    
i have following code in c# windows application, as
on form_load()
string str="select * fromlanguages list where languagename='english';
sqlcommand cmd=new sqlcommand(str,con);
sqldataadapter adp =new sqldataadapter(cmd);
datatable dt=new datatable();
adp.fill(dt);
if (dt.rows.count>0)
{
dgv.datasource=dt;
}


now in selectindexchanged of checkedlistbox , i will select another language,
whichever language is selected, that must be displayed beside the english language without refreshing the english data.extra columns are to added.

this i need, any help if helping me with the code.



Member 11807562 21-Nov-15 7:26am    
no it did not help me

1 solution

At runtime, you should have to add column for each checkbox selected from the list to display info next to default language.
 
Share this answer
 
Comments
Member 11807562 18-Nov-15 1:30am    
hey thanks but can you give a example with source code, im unable to sort it out.
Member 11807562 21-Nov-15 8:19am    
can you give a code for that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900