1
Answer

message to specific users by sender in signal r

tarun janveja

tarun janveja

7y
225
1
hi,
 
i am using signal r for chat application in my office but there is one problem i want one team leader can send message to only  his specific team members and other team leader can send message to only his team members .please suggest code for this .dont share link for signal r basic application .can any one give code example. i am maintaing team leader and team member in sql db.
 
 
Answers (1)
0
Ranjit Powar

Ranjit Powar

NA 8.1k 496.6k 7y
Use this code in selected index changed event of combobox
 
for(int i=0; i<dataGridView1.Rows.Count;i++)
{
   dataGridView1.Rows[i].Cells[6].Value=comboBox1.SelectedValue;
}
 
 
Accepted
0
Mayank Jani

Mayank Jani

NA 154 3.8k 7y
Hii Ranjit,
thank you for your reply. there is just one little change I have to do that is instead of 'combobox1.SelectedValue' I added 'SelectedItem'. it is because when I used SelectedValue, and changed the value from combobox, all the values went blank...
 
'combobox1.text' also works.
 
anyway, my problem is solved.
thank you once again.
 
Mayank Jani